We're dividing 31398775 by 870 
We're looking to find how many times 870 goes into 31398775.

Advancing to step 1:
When dividing 3 by 870, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 870

Moving on to step 2:
The number 870 fits into 31 0 times, leaving a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Bring next digit (3) of the dividend behind the 31 and repeat the process: 313 / 870

Going ahead to step 3:
870 can be fit into 313 0 times, resulting in a remainder of 313.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 313 after subtracting 0 from 313.
Take the next digit (9) from the dividend and append it to 313, then repeat: 3139 / 870

Step 4:
When dividing 3139 by 870, we get 3 with a remainder of 529.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 2610 from 3139, we get 529.
Take the next digit (8) from the dividend and append it to 529, then repeat: 5298 / 870

Going ahead to step 5:
870 goes into 5298 6 times with a remainder of 78.
Use 6 as the next digit of our solution. 
Result so far: 36.0
The remainder is 78 after subtracting 5220 from 5298.
Bring next digit (7) of the dividend behind the 78 and repeat the process: 787 / 870

Let's proceed to step 6:
When dividing 787 by 870, we get 0 with a remainder of 787.
The next digit of our result is 0. 
Result so far: 360.0
If we take 0 away from 787, we end up with 787.
Append the next digit (7) from the dividend to 787 and continue with: 7877 / 870

Advancing to step 7:
When dividing 7877 by 870, we get 9 with a remainder of 47.
Use 9 as the next digit of our solution. 
Result so far: 3609.0
The remainder is 47 after subtracting 7830 from 7877.
Fetch the next digit (5) from the dividend, attach it to 47 and continue: 475 / 870

Let's proceed to step 8:
475 divided by 870 is 0 with a remainder of 475.
Use 0 as the next digit of our solution. 
Result so far: 36090.0
The remainder is 475 after subtracting 0 from 475.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4750, and continue the process.

Let's proceed to step 9:
870 goes into 4750 5 times with a remainder of 400.
Use 5 as the next digit of our solution. 
Result so far: 36090.5
Subtracting 4350 from 4750 leaves us with 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

Step 10:
870 goes into 4000 4 times with a remainder of 520.
Write down 4 as next digit of the result. 
Result so far: 36090.54
The remainder is 520 after subtracting 3480 from 4000.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5200, and continue the process.

Let's proceed to step 11:
5200 divided by 870 is 5 with a remainder of 850.
Use 5 as the next digit of our solution. 
Result so far: 36090.545
Deduct 4350 from 5200 and we're left with 850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8500, and continue the process.

Step 12:
8500 divided by 870 is 9 with a remainder of 670.
The number 9 becomes the next digit in our result. 
Result so far: 36090.5459
Deduct 7830 from 8500 and we're left with 670.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6700, and continue the process.

Step 13:
870 can be fit into 6700 7 times, resulting in a remainder of 610.
Record the quotient 7 as the next digit in the result. 
Result so far: 36090.54597
The remainder is 610 after subtracting 6090 from 6700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6100, and continue the process.

On to step 14:
The number 870 fits into 6100 7 times, leaving a remainder of 10.
The next digit of our result is 7. 
Result so far: 36090.545977
If we take 6090 away from 6100, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 36090.545977 with a remaining 1e-06.