We divide 500871 by 87
We want to figure out the number of times 500871 can be divided by 87.

Step 1:
If we divide 5 by 87, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 87

On to step 2:
When dividing 50 by 87, we get 0 with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Append the next digit (0) from the dividend to 50 and continue with: 500 / 87

On to step 3:
The number 87 fits into 500 5 times, leaving a remainder of 65.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtracting 435 from 500 leaves us with 65.
Include the next digit (8) from the dividend after 65, then repeat: 658 / 87

Advancing to step 4:
87 goes into 658 7 times with a remainder of 49.
Record the quotient 7 as the next digit in the result. 
Result so far: 57.0
The remainder is 49 after subtracting 609 from 658.
Fetch the next digit (7) from the dividend, attach it to 49 and continue: 497 / 87

Advancing to step 5:
87 can be fit into 497 5 times, resulting in a remainder of 62.
The number 5 becomes the next digit in our result. 
Result so far: 575.0
Deduct 435 from 497 and we're left with 62.
Bring next digit (1) of the dividend behind the 62 and repeat the process: 621 / 87

Let's proceed to step 6:
87 can be fit into 621 7 times, resulting in a remainder of 12.
Use 7 as the next digit of our solution. 
Result so far: 5757.0
Subtract 609 from 621 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.

Moving on to step 7:
If we divide 120 by 87, we get 1 and a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 5757.1
Subtracting 87 from 120 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 8:
87 can be fit into 330 3 times, resulting in a remainder of 69.
Record the quotient 3 as the next digit in the result. 
Result so far: 5757.13
If we take 261 away from 330, we end up with 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

On to step 9:
690 divided by 87 is 7 with a remainder of 81.
Write down 7 as next digit of the result. 
Result so far: 5757.137
Subtract 609 from 690 to get 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

Let's proceed to step 10:
87 can be fit into 810 9 times, resulting in a remainder of 27.
The number 9 becomes the next digit in our result. 
Result so far: 5757.1379
The remainder is 27 after subtracting 783 from 810.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 11:
87 goes into 270 3 times with a remainder of 9.
Use 3 as the next digit of our solution. 
Result so far: 5757.13793
The remainder is 9 after subtracting 261 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 12:
When dividing 90 by 87, we get 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 5757.137931
Subtracting 87 from 90 leaves us 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.

Let's proceed to step 13:
If we divide 30 by 87, we get 0 and a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 5757.137931
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 14:
If we divide 300 by 87, we get 3 and a remainder of 39.
Put 3 as the next digit of the answer. 
Result so far: 5757.13793103
If we subtract 261 from 300, we get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

The final result is 5757.13793103 with a remainder of 3.9e-08.