Let's divide 500125 by 87
Let's see how many times 87 fits into 500125.

Moving on to step 1:
5 divided by 87 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 87

Step 2:
The number 87 fits into 50 0 times, leaving a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Include the next digit (0) from the dividend after 50, then repeat: 500 / 87

On to step 3:
When dividing 500 by 87, we get 5 with a remainder of 65.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 435 away from 500, we end up with 65.
Grab the next digit (1) from the dividend, add it to 65, then carry on: 651 / 87

Moving on to step 4:
87 goes into 651 7 times with a remainder of 42.
Put 7 as the next digit of the answer. 
Result so far: 57.0
Subtracting 609 from 651 leaves us with 42.
Bring next digit (2) of the dividend behind the 42 and repeat the process: 422 / 87

Going ahead to step 5:
422 divided by 87 is 4 with a remainder of 74.
Record the quotient 4 as the next digit in the result. 
Result so far: 574.0
If we take 348 away from 422, we end up with 74.
Bring next digit (5) of the dividend behind the 74 and repeat the process: 745 / 87

Moving on to step 6:
If we divide 745 by 87, we get 8 and a remainder of 49.
Use 8 as the next digit of our solution. 
Result so far: 5748.0
If we take 696 away from 745, we end up with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

On to step 7:
87 can be fit into 490 5 times, resulting in a remainder of 55.
The next digit of our result is 5. 
Result so far: 5748.5
Deduct 435 from 490 and we're left with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Let's proceed to step 8:
If we divide 550 by 87, we get 6 and a remainder of 28.
Put 6 as the next digit of the answer. 
Result so far: 5748.56
If we take 522 away from 550, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 9:
The number 87 fits into 280 3 times, leaving a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 5748.563
The remainder is 19 after subtracting 261 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 10:
87 can be fit into 190 2 times, resulting in a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 5748.5632
The remainder is 16 after subtracting 174 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 11:
When dividing 160 by 87, we get 1 with a remainder of 73.
The number 1 becomes the next digit in our result. 
Result so far: 5748.56321
Deduct 87 from 160 and we're left with 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Let's proceed to step 12:
730 divided by 87 is 8 with a remainder of 34.
Write down 8 as next digit of the result. 
Result so far: 5748.563218
Subtracting 696 from 730 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 13:
87 goes into 340 3 times with a remainder of 79.
Use 3 as the next digit of our solution. 
Result so far: 5748.5632183
Subtracting 261 from 340 leaves us with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Step 14:
The number 87 fits into 790 9 times, leaving a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 5748.56321839
The remainder is 7 after subtracting 783 from 790.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

The final outcome is 5748.56321839, with a leftover of 7e-09.