Let's divide 387930 by 31
We're looking to find how many times 31 goes into 387930.

Going ahead to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 31

On to step 2:
If we divide 38 by 31, we get 1 and a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
If we take 31 away from 38, we end up with 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 31

On to step 3:
31 can be fit into 77 2 times, resulting in a remainder of 15.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Deduct 62 from 77 and we're left with 15.
Append the next digit (9) from the dividend to 15 and continue with: 159 / 31

Step 4:
When dividing 159 by 31, we get 5 with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 125.0
Subtracting 155 from 159 leaves us with 4.
Append the next digit (3) from the dividend to 4 and continue with: 43 / 31

Moving on to step 5:
43 divided by 31 is 1 with a remainder of 12.
Record the quotient 1 as the next digit in the result. 
Result so far: 1251.0
Subtract 31 from 43 to get 12.
Append the next digit (0) from the dividend to 12 and continue with: 120 / 31

Let's proceed to step 6:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 12513.0
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.

Let's proceed to step 7:
270 divided by 31 is 8 with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 12513.8
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 8:
31 goes into 220 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 12513.87
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 9:
The number 31 fits into 30 0 times, leaving a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 12513.87
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 12513.8709
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 11:
If we divide 210 by 31, we get 6 and a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 12513.87096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 12:
240 divided by 31 is 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 12513.870967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 13:
230 divided by 31 is 7 with a remainder of 13.
The next digit of our result is 7. 
Result so far: 12513.8709677
Subtract 217 from 230 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.

Our division results in 12513.8709677 with a remaining 1.3e-07.