We look at the division of 398671 by 39 
We want to divide 398671 by 39.

Advancing to step 1:
39 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 39

Moving on to step 2:
39 can be fit into 39 1 times, resulting in a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 0 after subtracting 39 from 39.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 39

Advancing to step 3:
39 can be fit into 8 0 times, resulting in a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we subtract 0 from 8, we get 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 39

Advancing to step 4:
When dividing 86 by 39, we get 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 102.0
The remainder is 8 after subtracting 78 from 86.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 39

Advancing to step 5:
When dividing 87 by 39, we get 2 with a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 1022.0
If we subtract 78 from 87, we get 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 39

Moving on to step 6:
If we divide 91 by 39, we get 2 and a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 10222.0
Subtracting 78 from 91 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Advancing to step 7:
39 goes into 130 3 times with a remainder of 13.
Write down 3 as next digit of the result. 
Result so far: 10222.3
Subtract 117 from 130 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 8:
39 goes into 130 3 times with a remainder of 13.
Put 3 as the next digit of the answer. 
Result so far: 10222.33
If we subtract 117 from 130, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 10222.33, with a leftover of 0.013.