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

Step 1:
77 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 77

Going ahead to step 2:
39 divided by 77 is 0 with a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Fetch the next digit (3) from the dividend, attach it to 39 and continue: 393 / 77

Let's proceed to step 3:
If we divide 393 by 77, we get 5 and a remainder of 8.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 385 from 393 and we're left with 8.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 77

Let's proceed to step 4:
77 can be fit into 80 1 times, resulting in a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 51.0
Subtract 77 from 80 to get 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 77

Moving on to step 5:
If we divide 36 by 77, we get 0 and a remainder of 36.
Record the quotient 0 as the next digit in the result. 
Result so far: 510.0
If we take 0 away from 36, we end up with 36.
Append the next digit (6) from the dividend to 36 and continue with: 366 / 77

On to step 6:
When dividing 366 by 77, we get 4 with a remainder of 58.
The next digit of our result is 4. 
Result so far: 5104.0
If we take 308 away from 366, we end up 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.

Step 7:
77 goes into 580 7 times with a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 5104.7
The remainder is 41 after subtracting 539 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Step 8:
410 divided by 77 is 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 5104.75
Subtract 385 from 410 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 9:
The number 77 fits into 250 3 times, leaving a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 5104.753
If we subtract 231 from 250, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 10:
77 can be fit into 190 2 times, resulting in a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 5104.7532
If we take 154 away from 190, we end up 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 11:
77 goes into 360 4 times with a remainder of 52.
The next digit of our result is 4. 
Result so far: 5104.75324
If we take 308 away from 360, we end up 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.

On to step 12:
77 goes into 520 6 times with a remainder of 58.
Put 6 as the next digit of the answer. 
Result so far: 5104.753246
If we take 462 away from 520, we end up 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.

Let's proceed to step 13:
When dividing 580 by 77, we get 7 with a remainder of 41.
Use 7 as the next digit of our solution. 
Result so far: 5104.7532467
Subtract 539 from 580 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Going ahead to step 14:
410 divided by 77 is 5 with a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 5104.75324675
Subtract 385 from 410 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

The final outcome is 5104.75324675, with a leftover of 2.5e-08.