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

Going ahead to step 1:
777 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 777

Let's proceed to step 2:
The number 777 fits into 51 0 times, leaving a remainder of 51.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 51 and we're left with 51.
Grab the next digit (7) from the dividend, add it to 51, then carry on: 517 / 777

Going ahead to step 3:
If we divide 517 by 777, we get 0 and a remainder of 517.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 517 and we're left with 517.
Take the next digit (6) from the dividend and append it to 517, then repeat: 5176 / 777

Going ahead to step 4:
The number 777 fits into 5176 6 times, leaving a remainder of 514.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we subtract 4662 from 5176, we get 514.
Bring next digit (8) of the dividend behind the 514 and repeat the process: 5148 / 777

Advancing to step 5:
777 goes into 5148 6 times with a remainder of 486.
The next digit of our result is 6. 
Result so far: 66.0
If we subtract 4662 from 5148, we get 486.
Fetch the next digit (4) from the dividend, attach it to 486 and continue: 4864 / 777

Moving on to step 6:
If we divide 4864 by 777, we get 6 and a remainder of 202.
Record the quotient 6 as the next digit in the result. 
Result so far: 666.0
Subtract 4662 from 4864 to get 202.
Take the next digit (0) from the dividend and append it to 202, then repeat: 2020 / 777

Moving on to step 7:
777 goes into 2020 2 times with a remainder of 466.
Write down 2 as next digit of the result. 
Result so far: 6662.0
If we subtract 1554 from 2020, we get 466.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4660, and continue the process.

Let's proceed to step 8:
4660 divided by 777 is 5 with a remainder of 775.
Record the quotient 5 as the next digit in the result. 
Result so far: 6662.5
Subtracting 3885 from 4660 leaves us with 775.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7750, and continue the process.

Moving on to step 9:
777 can be fit into 7750 9 times, resulting in a remainder of 757.
Write down 9 as next digit of the result. 
Result so far: 6662.59
Deduct 6993 from 7750 and we're left with 757.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7570, and continue the process.

Step 10:
When dividing 7570 by 777, we get 9 with a remainder of 577.
Use 9 as the next digit of our solution. 
Result so far: 6662.599
If we subtract 6993 from 7570, we get 577.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5770, and continue the process.

The final outcome is 6662.599, with a leftover of 0.0577.