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

Advancing to step 1:
870 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 870

Step 2:
When dividing 31 by 870, we get 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Append the next digit (8) from the dividend to 31 and continue with: 318 / 870

On to step 3:
318 divided by 870 is 0 with a remainder of 318.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 318, we get 318.
Include the next digit (7) from the dividend after 318, then repeat: 3187 / 870

Going ahead to step 4:
When dividing 3187 by 870, we get 3 with a remainder of 577.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 2610 from 3187 and we're left with 577.
Append the next digit (6) from the dividend to 577 and continue with: 5776 / 870

On to step 5:
The number 870 fits into 5776 6 times, leaving a remainder of 556.
Write down 6 as next digit of the result. 
Result so far: 36.0
Deduct 5220 from 5776 and we're left with 556.
Bring next digit (9) of the dividend behind the 556 and repeat the process: 5569 / 870

Moving on to step 6:
870 goes into 5569 6 times with a remainder of 349.
Put 6 as the next digit of the answer. 
Result so far: 366.0
If we subtract 5220 from 5569, we get 349.
Fetch the next digit (5) from the dividend, attach it to 349 and continue: 3495 / 870

On to step 7:
870 can be fit into 3495 4 times, resulting in a remainder of 15.
Record the quotient 4 as the next digit in the result. 
Result so far: 3664.0
The remainder is 15 after subtracting 3480 from 3495.
Fetch the next digit (5) from the dividend, attach it to 15 and continue: 155 / 870

Going ahead to step 8:
870 can be fit into 155 0 times, resulting in a remainder of 155.
Record the quotient 0 as the next digit in the result. 
Result so far: 36640.0
The remainder is 155 after subtracting 0 from 155.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1550, and continue the process.

Advancing to step 9:
870 goes into 1550 1 times with a remainder of 680.
Write down 1 as next digit of the result. 
Result so far: 36640.1
Subtract 870 from 1550 to get 680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6800, and continue the process.

Moving on to step 10:
If we divide 6800 by 870, we get 7 and a remainder of 710.
Record the quotient 7 as the next digit in the result. 
Result so far: 36640.17
Deduct 6090 from 6800 and we're left with 710.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7100, and continue the process.

Advancing to step 11:
The number 870 fits into 7100 8 times, leaving a remainder of 140.
Use 8 as the next digit of our solution. 
Result so far: 36640.178
Subtract 6960 from 7100 to get 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Advancing to step 12:
If we divide 1400 by 870, we get 1 and a remainder of 530.
Record the quotient 1 as the next digit in the result. 
Result so far: 36640.1781
Deduct 870 from 1400 and we're left with 530.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5300, and continue the process.

On to step 13:
When dividing 5300 by 870, we get 6 with a remainder of 80.
The number 6 becomes the next digit in our result. 
Result so far: 36640.17816
Deduct 5220 from 5300 and we're left with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Advancing to step 14:
870 can be fit into 800 0 times, resulting in a remainder of 800.
Put 0 as the next digit of the answer. 
Result so far: 36640.17816
If we subtract 0 from 800, we get 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8000, and continue the process.

Let's proceed to step 15:
870 can be fit into 8000 9 times, resulting in a remainder of 170.
Put 9 as the next digit of the answer. 
Result so far: 36640.1781609
Subtracting 7830 from 8000 leaves us with 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Let's proceed to step 16:
When dividing 1700 by 870, we get 1 with a remainder of 830.
Record the quotient 1 as the next digit in the result. 
Result so far: 36640.17816091
If we take 870 away from 1700, we end up with 830.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8300, and continue the process.

In conclusion, the division gives 36640.17816091 with a balance of 8.3e-07.