We divide 389899 by 31
We want to divide 389899 by 31.

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

Going ahead to step 2:
38 divided by 31 is 1 with a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 31 from 38, we get 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 31

Going ahead to step 3:
When dividing 79 by 31, we get 2 with a remainder of 17.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtract 62 from 79 to get 17.
Bring next digit (8) of the dividend behind the 17 and repeat the process: 178 / 31

Step 4:
When dividing 178 by 31, we get 5 with a remainder of 23.
Record the quotient 5 as the next digit in the result. 
Result so far: 125.0
Subtracting 155 from 178 leaves us with 23.
Include the next digit (9) from the dividend after 23, then repeat: 239 / 31

Moving on to step 5:
The number 31 fits into 239 7 times, leaving a remainder of 22.
Put 7 as the next digit of the answer. 
Result so far: 1257.0
Deduct 217 from 239 and we're left with 22.
Fetch the next digit (9) from the dividend, attach it to 22 and continue: 229 / 31

Advancing to step 6:
31 goes into 229 7 times with a remainder of 12.
The number 7 becomes the next digit in our result. 
Result so far: 12577.0
Subtract 217 from 229 to 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.

Let's proceed to step 7:
When dividing 120 by 31, we get 3 with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 12577.3
Deduct 93 from 120 and we're left 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.

Moving on to step 8:
When dividing 270 by 31, we get 8 with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 12577.38
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 9:
31 goes into 220 7 times with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 12577.387
If we take 217 away from 220, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 10:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 12577.387
The remainder is 30 after subtracting 0 from 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 11:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 12577.38709
Subtract 279 from 300 to 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.

Step 12:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 12577.387096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 13:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 12577.3870967
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.

Going ahead to step 14:
230 divided by 31 is 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 12577.38709677
If we take 217 away from 230, we end up 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.

The final outcome is 12577.38709677, with a leftover of 1.3e-08.