We look at the division of 386862 by 31 
We want to divide 386862 by 31.

Advancing to step 1:
When dividing 3 by 31, we get 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.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 31

Moving on to step 2:
31 goes into 38 1 times with a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 38 leaves us with 7.
Include the next digit (6) from the dividend after 7, then repeat: 76 / 31

Moving on to step 3:
If we divide 76 by 31, we get 2 and a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtracting 62 from 76 leaves us with 14.
Take the next digit (8) from the dividend and append it to 14, then repeat: 148 / 31

Moving on to step 4:
When dividing 148 by 31, we get 4 with a remainder of 24.
Record the quotient 4 as the next digit in the result. 
Result so far: 124.0
If we take 124 away from 148, we end up with 24.
Grab the next digit (6) from the dividend, add it to 24, then carry on: 246 / 31

Going ahead to step 5:
If we divide 246 by 31, we get 7 and a remainder of 29.
The number 7 becomes the next digit in our result. 
Result so far: 1247.0
Deduct 217 from 246 and we're left with 29.
Bring next digit (2) of the dividend behind the 29 and repeat the process: 292 / 31

Moving on to step 6:
292 divided by 31 is 9 with a remainder of 13.
Put 9 as the next digit of the answer. 
Result so far: 12479.0
Deduct 279 from 292 and we're left 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.

Let's proceed to step 7:
When dividing 130 by 31, we get 4 with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 12479.4
If we subtract 124 from 130, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 8:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 12479.41
If we subtract 31 from 60, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 9:
31 goes into 290 9 times with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 12479.419
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 10:
31 can be fit into 110 3 times, resulting in a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 12479.4193
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 11:
If we divide 170 by 31, we get 5 and a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 12479.41935
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 12:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 12479.419354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 13:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 12479.4193548
If we subtract 248 from 260, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 14:
120 divided by 31 is 3 with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 12479.41935483
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Our division results in 12479.41935483 with a remaining 2.7e-08.