We look at the division of 389238 by 31 
We want to figure out the number of times 389238 can be divided by 31.

Going ahead to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 31

Moving on to step 2:
When dividing 38 by 31, we get 1 with a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 38, we get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 31

On to step 3:
31 goes into 79 2 times with a remainder of 17.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Subtracting 62 from 79 leaves us with 17.
Include the next digit (2) from the dividend after 17, then repeat: 172 / 31

On to step 4:
31 can be fit into 172 5 times, resulting in a remainder of 17.
Record the quotient 5 as the next digit in the result. 
Result so far: 125.0
Subtracting 155 from 172 leaves us with 17.
Include the next digit (3) from the dividend after 17, then repeat: 173 / 31

Going ahead to step 5:
31 can be fit into 173 5 times, resulting in a remainder of 18.
Use 5 as the next digit of our solution. 
Result so far: 1255.0
Subtracting 155 from 173 leaves us with 18.
Include the next digit (8) from the dividend after 18, then repeat: 188 / 31

Moving on to step 6:
The number 31 fits into 188 6 times, leaving a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 12556.0
If we subtract 186 from 188, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
If we divide 20 by 31, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 12556.0
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 8:
If we divide 200 by 31, we get 6 and a remainder of 14.
The next digit of our result is 6. 
Result so far: 12556.06
If we subtract 186 from 200, we 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.

Step 9:
140 divided by 31 is 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 12556.064
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 10:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 12556.0645
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 11:
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: 12556.06451
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.

Let's proceed to step 12:
When dividing 190 by 31, we get 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 12556.064516
The remainder is 4 after subtracting 186 from 190.
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 13:
When dividing 40 by 31, we get 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 12556.0645161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 14:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 12556.06451612
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Our division results in 12556.06451612 with a remaining 2.8e-08.