We look at the division of 518862 by 77 
The aim is to understand the frequency of 77 in 518862.

On to step 1:
When dividing 5 by 77, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 77

On to step 2:
77 can be fit into 51 0 times, resulting in 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.
Append the next digit (8) from the dividend to 51 and continue with: 518 / 77

Let's proceed to step 3:
77 goes into 518 6 times with a remainder of 56.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
Subtracting 462 from 518 leaves us with 56.
Take the next digit (8) from the dividend and append it to 56, then repeat: 568 / 77

Advancing to step 4:
If we divide 568 by 77, we get 7 and a remainder of 29.
The next digit of our result is 7. 
Result so far: 67.0
Deduct 539 from 568 and we're left with 29.
Append the next digit (6) from the dividend to 29 and continue with: 296 / 77

Let's proceed to step 5:
If we divide 296 by 77, we get 3 and a remainder of 65.
Write down 3 as next digit of the result. 
Result so far: 673.0
If we take 231 away from 296, we end up with 65.
Append the next digit (2) from the dividend to 65 and continue with: 652 / 77

Moving on to step 6:
The number 77 fits into 652 8 times, leaving a remainder of 36.
The next digit of our result is 8. 
Result so far: 6738.0
Deduct 616 from 652 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 7:
77 can be fit into 360 4 times, resulting in a remainder of 52.
Record the quotient 4 as the next digit in the result. 
Result so far: 6738.4
Subtracting 308 from 360 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 8:
77 can be fit into 520 6 times, resulting in a remainder of 58.
Record the quotient 6 as the next digit in the result. 
Result so far: 6738.46
The remainder is 58 after subtracting 462 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Let's proceed to step 9:
77 goes into 580 7 times with a remainder of 41.
The next digit of our result is 7. 
Result so far: 6738.467
Deduct 539 from 580 and we're left with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

On to step 10:
The number 77 fits into 410 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 6738.4675
If we take 385 away from 410, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 11:
When dividing 250 by 77, we get 3 with a remainder of 19.
Use 3 as the next digit of our solution. 
Result so far: 6738.46753
The remainder is 19 after subtracting 231 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 12:
The number 77 fits into 190 2 times, leaving a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 6738.467532
Subtracting 154 from 190 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 13:
360 divided by 77 is 4 with a remainder of 52.
The next digit of our result is 4. 
Result so far: 6738.4675324
Deduct 308 from 360 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 14:
The number 77 fits into 520 6 times, leaving a remainder of 58.
The next digit of our result is 6. 
Result so far: 6738.46753246
Subtracting 462 from 520 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

The final outcome is 6738.46753246, with a leftover of 5.8e-08.