We look at the division of 31985670 by 364 
We're looking to find how many times 364 goes into 31985670.

Step 1:
364 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 364

Going ahead to step 2:
364 goes into 31 0 times with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Grab the next digit (9) from the dividend, add it to 31, then carry on: 319 / 364

Going ahead to step 3:
The number 364 fits into 319 0 times, leaving a remainder of 319.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 319 to get 319.
Take the next digit (8) from the dividend and append it to 319, then repeat: 3198 / 364

Going ahead to step 4:
364 goes into 3198 8 times with a remainder of 286.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we take 2912 away from 3198, we end up with 286.
Take the next digit (5) from the dividend and append it to 286, then repeat: 2865 / 364

Going ahead to step 5:
2865 divided by 364 is 7 with a remainder of 317.
Write down 7 as next digit of the result. 
Result so far: 87.0
If we subtract 2548 from 2865, we get 317.
Grab the next digit (6) from the dividend, add it to 317, then carry on: 3176 / 364

On to step 6:
3176 divided by 364 is 8 with a remainder of 264.
Put 8 as the next digit of the answer. 
Result so far: 878.0
If we take 2912 away from 3176, we end up with 264.
Bring next digit (7) of the dividend behind the 264 and repeat the process: 2647 / 364

On to step 7:
364 can be fit into 2647 7 times, resulting in a remainder of 99.
Record the quotient 7 as the next digit in the result. 
Result so far: 8787.0
Subtract 2548 from 2647 to get 99.
Include the next digit (0) from the dividend after 99, then repeat: 990 / 364

Advancing to step 8:
990 divided by 364 is 2 with a remainder of 262.
Write down 2 as next digit of the result. 
Result so far: 87872.0
If we take 728 away from 990, we end up with 262.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

Going ahead to step 9:
The number 364 fits into 2620 7 times, leaving a remainder of 72.
The next digit of our result is 7. 
Result so far: 87872.7
If we take 2548 away from 2620, we end up with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

On to step 10:
364 can be fit into 720 1 times, resulting in a remainder of 356.
The next digit of our result is 1. 
Result so far: 87872.71
If we take 364 away from 720, we end up with 356.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3560, and continue the process.

Going ahead to step 11:
If we divide 3560 by 364, we get 9 and a remainder of 284.
The number 9 becomes the next digit in our result. 
Result so far: 87872.719
Subtracting 3276 from 3560 leaves us with 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

Step 12:
2840 divided by 364 is 7 with a remainder of 292.
Put 7 as the next digit of the answer. 
Result so far: 87872.7197
The remainder is 292 after subtracting 2548 from 2840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2920, and continue the process.

Going ahead to step 13:
When dividing 2920 by 364, we get 8 with a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 87872.71978
The remainder is 8 after subtracting 2912 from 2920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 14:
80 divided by 364 is 0 with a remainder of 80.
The next digit of our result is 0. 
Result so far: 87872.71978
Subtract 0 from 80 to get 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Moving on to step 15:
800 divided by 364 is 2 with a remainder of 72.
The number 2 becomes the next digit in our result. 
Result so far: 87872.7197802
If we take 728 away from 800, we end up with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Moving on to step 16:
364 goes into 720 1 times with a remainder of 356.
Write down 1 as next digit of the result. 
Result so far: 87872.71978021
If we take 364 away from 720, we end up with 356.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3560, and continue the process.

In conclusion, the division gives 87872.71978021 with a balance of 3.56e-07.