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

On to step 1:
87 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 87

On to step 2:
87 goes into 50 0 times with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Take the next digit (2) from the dividend and append it to 50, then repeat: 502 / 87

Moving on to step 3:
87 goes into 502 5 times with a remainder of 67.
The next digit of our result is 5. 
Result so far: 5.0
If we subtract 435 from 502, we get 67.
Bring next digit (8) of the dividend behind the 67 and repeat the process: 678 / 87

Going ahead to step 4:
678 divided by 87 is 7 with a remainder of 69.
Use 7 as the next digit of our solution. 
Result so far: 57.0
Deduct 609 from 678 and we're left with 69.
Include the next digit (6) from the dividend after 69, then repeat: 696 / 87

On to step 5:
If we divide 696 by 87, we get 8 and a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 578.0
The remainder is 0 after subtracting 696 from 696.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 87

Step 6:
When dividing 5 by 87, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 5780.0
Deduct 0 from 5 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
87 goes into 50 0 times with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 5780.0
The remainder is 50 after subtracting 0 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Moving on to step 8:
If we divide 500 by 87, we get 5 and a remainder of 65.
Put 5 as the next digit of the answer. 
Result so far: 5780.05
Subtracting 435 from 500 leaves us with 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Let's proceed to step 9:
87 can be fit into 650 7 times, resulting in a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 5780.057
Subtracting 609 from 650 leaves us with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Moving on to step 10:
The number 87 fits into 410 4 times, leaving a remainder of 62.
The next digit of our result is 4. 
Result so far: 5780.0574
If we take 348 away from 410, we end up with 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Advancing to step 11:
When dividing 620 by 87, we get 7 with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 5780.05747
Subtract 609 from 620 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 12:
The number 87 fits into 110 1 times, leaving a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 5780.057471
Deduct 87 from 110 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 13:
87 can be fit into 230 2 times, resulting in a remainder of 56.
Put 2 as the next digit of the answer. 
Result so far: 5780.0574712
If we take 174 away from 230, we end up with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Going ahead to step 14:
The number 87 fits into 560 6 times, leaving a remainder of 38.
Record the quotient 6 as the next digit in the result. 
Result so far: 5780.05747126
If we take 522 away from 560, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

The final result is 5780.05747126 with a remainder of 3.8e-08.