Let's divide 501640 by 87
We want to divide 501640 by 87.

Advancing to step 1:
5 divided by 87 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 87

Advancing 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
The remainder is 50 after subtracting 0 from 50.
Bring next digit (1) of the dividend behind the 50 and repeat the process: 501 / 87

Advancing to step 3:
501 divided by 87 is 5 with a remainder of 66.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Deduct 435 from 501 and we're left with 66.
Bring next digit (6) of the dividend behind the 66 and repeat the process: 666 / 87

Step 4:
If we divide 666 by 87, we get 7 and a remainder of 57.
The next digit of our result is 7. 
Result so far: 57.0
Subtracting 609 from 666 leaves us with 57.
Fetch the next digit (4) from the dividend, attach it to 57 and continue: 574 / 87

Going ahead to step 5:
87 can be fit into 574 6 times, resulting in a remainder of 52.
Write down 6 as next digit of the result. 
Result so far: 576.0
If we subtract 522 from 574, we get 52.
Take the next digit (0) from the dividend and append it to 52, then repeat: 520 / 87

Moving on to step 6:
When dividing 520 by 87, we get 5 with a remainder of 85.
Record the quotient 5 as the next digit in the result. 
Result so far: 5765.0
Subtract 435 from 520 to get 85.
Since there are no more digits in the dividend, we add a zero to the remainder making it 850, and continue the process.

Moving on to step 7:
850 divided by 87 is 9 with a remainder of 67.
Put 9 as the next digit of the answer. 
Result so far: 5765.9
If we take 783 away from 850, we end up with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Moving on to step 8:
The number 87 fits into 670 7 times, leaving a remainder of 61.
The number 7 becomes the next digit in our result. 
Result so far: 5765.97
Subtracting 609 from 670 leaves us with 61.
Since there are no more digits in the dividend, we add a zero to the remainder making it 610, and continue the process.

On to step 9:
87 can be fit into 610 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 5765.977
Subtracting 609 from 610 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Our division results in 5765.977 with a remaining 0.0001.