Let's divide 387301 by 31
Let's see how many times 31 fits into 387301.

Moving on to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 31

Moving on to step 2:
The number 31 fits into 38 1 times, leaving a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 31 away from 38, we end up with 7.
Bring next digit (7) of the dividend behind the 7 and repeat the process: 77 / 31

Step 3:
77 divided by 31 is 2 with a remainder of 15.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Subtracting 62 from 77 leaves us with 15.
Take the next digit (3) from the dividend and append it to 15, then repeat: 153 / 31

On to step 4:
153 divided by 31 is 4 with a remainder of 29.
Write down 4 as next digit of the result. 
Result so far: 124.0
The remainder is 29 after subtracting 124 from 153.
Bring next digit (0) of the dividend behind the 29 and repeat the process: 290 / 31

On to step 5:
31 goes into 290 9 times with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 1249.0
Subtracting 279 from 290 leaves us with 11.
Fetch the next digit (1) from the dividend, attach it to 11 and continue: 111 / 31

Going ahead to step 6:
If we divide 111 by 31, we get 3 and a remainder of 18.
Write down 3 as next digit of the result. 
Result so far: 12493.0
If we take 93 away from 111, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 7:
31 can be fit into 180 5 times, resulting in a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 12493.5
Subtracting 155 from 180 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 8:
31 goes into 250 8 times with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 12493.58
If we take 248 away from 250, we end up 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 9:
20 divided by 31 is 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 12493.58
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 10:
If we divide 200 by 31, we get 6 and a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 12493.5806
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 11:
When dividing 140 by 31, we get 4 with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 12493.58064
If we subtract 124 from 140, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 12:
When dividing 160 by 31, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 12493.580645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 13:
If we divide 50 by 31, we get 1 and a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 12493.5806451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 14:
31 can be fit into 190 6 times, resulting in a remainder of 4.
The next digit of our result is 6. 
Result so far: 12493.58064516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 12493.58064516 and a remainder of 4e-09.