We look at the division of 31389717 by 804 
Let's see how many times 804 fits into 31389717.

Step 1:
The number 804 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 804

Advancing to step 2:
If we divide 31 by 804, we get 0 and a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Include the next digit (3) from the dividend after 31, then repeat: 313 / 804

Going ahead to step 3:
The number 804 fits into 313 0 times, leaving a remainder of 313.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 313, we end up with 313.
Grab the next digit (8) from the dividend, add it to 313, then carry on: 3138 / 804

Advancing to step 4:
804 can be fit into 3138 3 times, resulting in a remainder of 726.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 2412 from 3138, we get 726.
Take the next digit (9) from the dividend and append it to 726, then repeat: 7269 / 804

Step 5:
7269 divided by 804 is 9 with a remainder of 33.
Write down 9 as next digit of the result. 
Result so far: 39.0
Subtract 7236 from 7269 to get 33.
Include the next digit (7) from the dividend after 33, then repeat: 337 / 804

Let's proceed to step 6:
804 goes into 337 0 times with a remainder of 337.
Put 0 as the next digit of the answer. 
Result so far: 390.0
If we take 0 away from 337, we end up with 337.
Include the next digit (1) from the dividend after 337, then repeat: 3371 / 804

Advancing to step 7:
804 can be fit into 3371 4 times, resulting in a remainder of 155.
The number 4 becomes the next digit in our result. 
Result so far: 3904.0
If we subtract 3216 from 3371, we get 155.
Fetch the next digit (7) from the dividend, attach it to 155 and continue: 1557 / 804

On to step 8:
1557 divided by 804 is 1 with a remainder of 753.
Record the quotient 1 as the next digit in the result. 
Result so far: 39041.0
Subtract 804 from 1557 to get 753.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7530, and continue the process.

Advancing to step 9:
804 goes into 7530 9 times with a remainder of 294.
Put 9 as the next digit of the answer. 
Result so far: 39041.9
If we subtract 7236 from 7530, we get 294.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Step 10:
804 can be fit into 2940 3 times, resulting in a remainder of 528.
Use 3 as the next digit of our solution. 
Result so far: 39041.93
Subtract 2412 from 2940 to get 528.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5280, and continue the process.

Advancing to step 11:
804 goes into 5280 6 times with a remainder of 456.
Put 6 as the next digit of the answer. 
Result so far: 39041.936
Subtracting 4824 from 5280 leaves us with 456.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4560, and continue the process.

Moving on to step 12:
If we divide 4560 by 804, we get 5 and a remainder of 540.
Write down 5 as next digit of the result. 
Result so far: 39041.9365
If we subtract 4020 from 4560, we get 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5400, and continue the process.

On to step 13:
If we divide 5400 by 804, we get 6 and a remainder of 576.
The next digit of our result is 6. 
Result so far: 39041.93656
Deduct 4824 from 5400 and we're left with 576.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5760, and continue the process.

Moving on to step 14:
If we divide 5760 by 804, we get 7 and a remainder of 132.
Put 7 as the next digit of the answer. 
Result so far: 39041.936567
If we subtract 5628 from 5760, we get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

On to step 15:
If we divide 1320 by 804, we get 1 and a remainder of 516.
The number 1 becomes the next digit in our result. 
Result so far: 39041.9365671
Subtracting 804 from 1320 leaves us with 516.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5160, and continue the process.

On to step 16:
If we divide 5160 by 804, we get 6 and a remainder of 336.
Use 6 as the next digit of our solution. 
Result so far: 39041.93656716
If we subtract 4824 from 5160, we get 336.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3360, and continue the process.

The final outcome is 39041.93656716, with a leftover of 3.36e-07.