We're dividing 397169 by 8 
Our goal is to divide 397169 by 8.

On to step 1:
8 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 8

Going ahead to step 2:
8 can be fit into 39 4 times, resulting in a remainder of 7.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 32 from 39 to get 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 8

Moving on to step 3:
8 can be fit into 77 9 times, resulting in a remainder of 5.
Write down 9 as next digit of the result. 
Result so far: 49.0
Subtract 72 from 77 to get 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 8

Going ahead to step 4:
When dividing 51 by 8, we get 6 with a remainder of 3.
The number 6 becomes the next digit in our result. 
Result so far: 496.0
If we subtract 48 from 51, we get 3.
Fetch the next digit (6) from the dividend, attach it to 3 and continue: 36 / 8

On to step 5:
36 divided by 8 is 4 with a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 4964.0
If we subtract 32 from 36, we get 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 8

Advancing to step 6:
49 divided by 8 is 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 49646.0
If we subtract 48 from 49, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 7:
When dividing 10 by 8, we get 1 with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 49646.1
Deduct 8 from 10 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 8:
If we divide 20 by 8, we get 2 and a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 49646.12
If we take 16 away from 20, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 9:
The number 8 fits into 40 5 times, leaving a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 49646.125
Subtracting 40 from 40 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 49646.125
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 11:
When dividing 0 by 8, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 49646.125
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 49646.125 and a remainder of 0.0.