We're dividing 5015542 by 877 
We want to divide 5015542 by 877.

Going ahead to step 1:
5 divided by 877 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 877

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

Step 3:
If we divide 501 by 877, we get 0 and a remainder of 501.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 501 and we're left with 501.
Include the next digit (5) from the dividend after 501, then repeat: 5015 / 877

Advancing to step 4:
877 goes into 5015 5 times with a remainder of 630.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we take 4385 away from 5015, we end up with 630.
Include the next digit (5) from the dividend after 630, then repeat: 6305 / 877

Advancing to step 5:
877 can be fit into 6305 7 times, resulting in a remainder of 166.
The number 7 becomes the next digit in our result. 
Result so far: 57.0
Subtracting 6139 from 6305 leaves us with 166.
Take the next digit (4) from the dividend and append it to 166, then repeat: 1664 / 877

Moving on to step 6:
877 goes into 1664 1 times with a remainder of 787.
Put 1 as the next digit of the answer. 
Result so far: 571.0
Subtracting 877 from 1664 leaves us with 787.
Grab the next digit (2) from the dividend, add it to 787, then carry on: 7872 / 877

Let's proceed to step 7:
877 can be fit into 7872 8 times, resulting in a remainder of 856.
The number 8 becomes the next digit in our result. 
Result so far: 5718.0
Subtracting 7016 from 7872 leaves us with 856.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8560, and continue the process.

Going ahead to step 8:
If we divide 8560 by 877, we get 9 and a remainder of 667.
Use 9 as the next digit of our solution. 
Result so far: 5718.9
If we take 7893 away from 8560, we end up with 667.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6670, and continue the process.

Advancing to step 9:
The number 877 fits into 6670 7 times, leaving a remainder of 531.
The number 7 becomes the next digit in our result. 
Result so far: 5718.97
Subtract 6139 from 6670 to get 531.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5310, and continue the process.

On to step 10:
When dividing 5310 by 877, we get 6 with a remainder of 48.
Write down 6 as next digit of the result. 
Result so far: 5718.976
Subtracting 5262 from 5310 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 11:
The number 877 fits into 480 0 times, leaving a remainder of 480.
Put 0 as the next digit of the answer. 
Result so far: 5718.976
The remainder is 480 after subtracting 0 from 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

Going ahead to step 12:
4800 divided by 877 is 5 with a remainder of 415.
Put 5 as the next digit of the answer. 
Result so far: 5718.97605
Subtract 4385 from 4800 to get 415.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4150, and continue the process.

On to step 13:
4150 divided by 877 is 4 with a remainder of 642.
Use 4 as the next digit of our solution. 
Result so far: 5718.976054
Deduct 3508 from 4150 and we're left with 642.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6420, and continue the process.

Advancing to step 14:
877 goes into 6420 7 times with a remainder of 281.
The next digit of our result is 7. 
Result so far: 5718.9760547
If we subtract 6139 from 6420, we get 281.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2810, and continue the process.

Step 15:
2810 divided by 877 is 3 with a remainder of 179.
The next digit of our result is 3. 
Result so far: 5718.97605473
The remainder is 179 after subtracting 2631 from 2810.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1790, and continue the process.

After the division, we end up with 5718.97605473 and a remainder of 1.79e-07.