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

Let's proceed to step 1:
77 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 77

Let's proceed to step 2:
77 goes into 50 0 times with a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Take the next digit (7) from the dividend and append it to 50, then repeat: 507 / 77

Step 3:
77 can be fit into 507 6 times, resulting in a remainder of 45.
Write down 6 as next digit of the result. 
Result so far: 6.0
If we subtract 462 from 507, we get 45.
Grab the next digit (0) from the dividend, add it to 45, then carry on: 450 / 77

On to step 4:
When dividing 450 by 77, we get 5 with a remainder of 65.
Put 5 as the next digit of the answer. 
Result so far: 65.0
The remainder is 65 after subtracting 385 from 450.
Take the next digit (7) from the dividend and append it to 65, then repeat: 657 / 77

On to step 5:
657 divided by 77 is 8 with a remainder of 41.
Use 8 as the next digit of our solution. 
Result so far: 658.0
Subtracting 616 from 657 leaves us with 41.
Take the next digit (8) from the dividend and append it to 41, then repeat: 418 / 77

Step 6:
The number 77 fits into 418 5 times, leaving a remainder of 33.
Write down 5 as next digit of the result. 
Result so far: 6585.0
Subtracting 385 from 418 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 7:
When dividing 330 by 77, we get 4 with a remainder of 22.
The next digit of our result is 4. 
Result so far: 6585.4
Deduct 308 from 330 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 8:
The number 77 fits into 220 2 times, leaving a remainder of 66.
Record the quotient 2 as the next digit in the result. 
Result so far: 6585.42
Subtracting 154 from 220 leaves us with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Moving on to step 9:
If we divide 660 by 77, we get 8 and a remainder of 44.
The number 8 becomes the next digit in our result. 
Result so far: 6585.428
If we subtract 616 from 660, we get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Step 10:
When dividing 440 by 77, we get 5 with a remainder of 55.
Write down 5 as next digit of the result. 
Result so far: 6585.4285
Subtracting 385 from 440 leaves us with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 11:
When dividing 550 by 77, we get 7 with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 6585.42857
Deduct 539 from 550 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 12:
77 goes into 110 1 times with a remainder of 33.
Use 1 as the next digit of our solution. 
Result so far: 6585.428571
Deduct 77 from 110 and we're left with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 13:
330 divided by 77 is 4 with a remainder of 22.
Write down 4 as next digit of the result. 
Result so far: 6585.4285714
Subtracting 308 from 330 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 14:
The number 77 fits into 220 2 times, leaving a remainder of 66.
Write down 2 as next digit of the result. 
Result so far: 6585.42857142
If we take 154 away from 220, we end up with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

After the division, we end up with 6585.42857142 and a remainder of 6.6e-08.