398012 ÷ 8 
We want to figure out the number of times 398012 can be divided by 8.

Going ahead to step 1:
3 divided by 8 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 8

Let's proceed to step 2:
The number 8 fits into 39 4 times, leaving a remainder of 7.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we subtract 32 from 39, we get 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 8

Moving on to step 3:
8 can be fit into 78 9 times, resulting in a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 49.0
The remainder is 6 after subtracting 72 from 78.
Append the next digit (0) from the dividend to 6 and continue with: 60 / 8

Step 4:
60 divided by 8 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 497.0
Subtract 56 from 60 to get 4.
Bring next digit (1) of the dividend behind the 4 and repeat the process: 41 / 8

On to step 5:
41 divided by 8 is 5 with a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 4975.0
Deduct 40 from 41 and we're left with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 8

On to step 6:
If we divide 12 by 8, we get 1 and a remainder of 4.
Use 1 as the next digit of our solution. 
Result so far: 49751.0
Deduct 8 from 12 and we're left 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.

Advancing to step 7:
When dividing 40 by 8, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 49751.5
Subtract 40 from 40 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
If we divide 0 by 8, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 49751.5
Deduct 0 from 0 and we're left 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.

Going ahead to step 9:
8 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 49751.5
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.

Our division results in 49751.5 with a remaining 0.0.