We look at the division of 5163887 by 877 
We're looking to find how many times 877 goes into 5163887.

Let's proceed to step 1:
If we divide 5 by 877, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 877

Moving on to step 2:
If we divide 51 by 877, we get 0 and a remainder of 51.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 51 and we're left with 51.
Take the next digit (6) from the dividend and append it to 51, then repeat: 516 / 877

Moving on to step 3:
877 goes into 516 0 times with a remainder of 516.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 516, we get 516.
Include the next digit (3) from the dividend after 516, then repeat: 5163 / 877

Let's proceed to step 4:
877 goes into 5163 5 times with a remainder of 778.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 4385 from 5163, we get 778.
Grab the next digit (8) from the dividend, add it to 778, then carry on: 7788 / 877

Let's proceed to step 5:
When dividing 7788 by 877, we get 8 with a remainder of 772.
Put 8 as the next digit of the answer. 
Result so far: 58.0
The remainder is 772 after subtracting 7016 from 7788.
Fetch the next digit (8) from the dividend, attach it to 772 and continue: 7728 / 877

Moving on to step 6:
877 can be fit into 7728 8 times, resulting in a remainder of 712.
Record the quotient 8 as the next digit in the result. 
Result so far: 588.0
If we take 7016 away from 7728, we end up with 712.
Bring next digit (7) of the dividend behind the 712 and repeat the process: 7127 / 877

Going ahead to step 7:
877 goes into 7127 8 times with a remainder of 111.
The next digit of our result is 8. 
Result so far: 5888.0
If we subtract 7016 from 7127, we get 111.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1110, and continue the process.

Step 8:
The number 877 fits into 1110 1 times, leaving a remainder of 233.
Use 1 as the next digit of our solution. 
Result so far: 5888.1
If we take 877 away from 1110, we end up with 233.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2330, and continue the process.

On to step 9:
If we divide 2330 by 877, we get 2 and a remainder of 576.
The next digit of our result is 2. 
Result so far: 5888.12
Subtract 1754 from 2330 to get 576.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5760, and continue the process.

Step 10:
877 goes into 5760 6 times with a remainder of 498.
Write down 6 as next digit of the result. 
Result so far: 5888.126
The remainder is 498 after subtracting 5262 from 5760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4980, and continue the process.

Step 11:
4980 divided by 877 is 5 with a remainder of 595.
Write down 5 as next digit of the result. 
Result so far: 5888.1265
If we take 4385 away from 4980, we end up with 595.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5950, and continue the process.

On to step 12:
The number 877 fits into 5950 6 times, leaving a remainder of 688.
Put 6 as the next digit of the answer. 
Result so far: 5888.12656
The remainder is 688 after subtracting 5262 from 5950.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6880, and continue the process.

Let's proceed to step 13:
When dividing 6880 by 877, we get 7 with a remainder of 741.
Record the quotient 7 as the next digit in the result. 
Result so far: 5888.126567
If we subtract 6139 from 6880, we get 741.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7410, and continue the process.

Let's proceed to step 14:
The number 877 fits into 7410 8 times, leaving a remainder of 394.
Put 8 as the next digit of the answer. 
Result so far: 5888.1265678
If we subtract 7016 from 7410, we get 394.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3940, and continue the process.

Moving on to step 15:
877 can be fit into 3940 4 times, resulting in a remainder of 432.
Write down 4 as next digit of the result. 
Result so far: 5888.12656784
Subtract 3508 from 3940 to get 432.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4320, and continue the process.

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