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

On to step 1:
77 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 77

On to step 2:
77 goes into 54 0 times with a remainder of 54.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 54 and we're left with 54.
Bring next digit (2) of the dividend behind the 54 and repeat the process: 542 / 77

Going ahead to step 3:
If we divide 542 by 77, we get 7 and a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 7.0
Deduct 539 from 542 and we're left with 3.
Take the next digit (0) from the dividend and append it to 3, then repeat: 30 / 77

Going ahead to step 4:
77 can be fit into 30 0 times, resulting in a remainder of 30.
The next digit of our result is 0. 
Result so far: 70.0
Subtract 0 from 30 to get 30.
Grab the next digit (7) from the dividend, add it to 30, then carry on: 307 / 77

Advancing to step 5:
77 can be fit into 307 3 times, resulting in a remainder of 76.
Write down 3 as next digit of the result. 
Result so far: 703.0
Deduct 231 from 307 and we're left with 76.
Grab the next digit (7) from the dividend, add it to 76, then carry on: 767 / 77

Step 6:
77 goes into 767 9 times with a remainder of 74.
The number 9 becomes the next digit in our result. 
Result so far: 7039.0
Subtract 693 from 767 to get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Going ahead to step 7:
If we divide 740 by 77, we get 9 and a remainder of 47.
Record the quotient 9 as the next digit in the result. 
Result so far: 7039.9
Subtracting 693 from 740 leaves us with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Moving on to step 8:
77 can be fit into 470 6 times, resulting in a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 7039.96
Subtract 462 from 470 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 9:
77 can be fit into 80 1 times, resulting in a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 7039.961
Subtracting 77 from 80 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 10:
When dividing 30 by 77, we get 0 with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 7039.961
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 11:
77 can be fit into 300 3 times, resulting in a remainder of 69.
Put 3 as the next digit of the answer. 
Result so far: 7039.96103
Subtracting 231 from 300 leaves us with 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

Step 12:
If we divide 690 by 77, we get 8 and a remainder of 74.
Record the quotient 8 as the next digit in the result. 
Result so far: 7039.961038
Subtracting 616 from 690 leaves us with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

On to step 13:
740 divided by 77 is 9 with a remainder of 47.
The number 9 becomes the next digit in our result. 
Result so far: 7039.9610389
The remainder is 47 after subtracting 693 from 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

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

In conclusion, the division gives 7039.96103896 with a balance of 8e-09.