We're dividing 402069 by 77 
The aim is to understand the frequency of 77 in 402069.

Going ahead to step 1:
4 divided by 77 is 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 77

On to step 2:
If we divide 40 by 77, we get 0 and a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (2) from the dividend and append it to 40, then repeat: 402 / 77

Going ahead to step 3:
When dividing 402 by 77, we get 5 with a remainder of 17.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 385 from 402, we get 17.
Bring next digit (0) of the dividend behind the 17 and repeat the process: 170 / 77

Step 4:
170 divided by 77 is 2 with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 52.0
The remainder is 16 after subtracting 154 from 170.
Bring next digit (6) of the dividend behind the 16 and repeat the process: 166 / 77

Advancing to step 5:
166 divided by 77 is 2 with a remainder of 12.
The next digit of our result is 2. 
Result so far: 522.0
Subtract 154 from 166 to get 12.
Bring next digit (9) of the dividend behind the 12 and repeat the process: 129 / 77

Step 6:
If we divide 129 by 77, we get 1 and a remainder of 52.
Use 1 as the next digit of our solution. 
Result so far: 5221.0
If we take 77 away from 129, 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.

Step 7:
77 can be fit into 520 6 times, resulting in a remainder of 58.
Use 6 as the next digit of our solution. 
Result so far: 5221.6
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.

Going ahead to step 8:
The number 77 fits into 580 7 times, leaving a remainder of 41.
Write down 7 as next digit of the result. 
Result so far: 5221.67
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.

On to step 9:
77 can be fit into 410 5 times, resulting in a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 5221.675
If we subtract 385 from 410, we 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.

Advancing to step 10:
When dividing 250 by 77, we get 3 with a remainder of 19.
Write down 3 as next digit of the result. 
Result so far: 5221.6753
Deduct 231 from 250 and we're left with 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 11:
If we divide 190 by 77, we get 2 and a remainder of 36.
The next digit of our result is 2. 
Result so far: 5221.67532
The remainder is 36 after subtracting 154 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 12:
360 divided by 77 is 4 with a remainder of 52.
The next digit of our result is 4. 
Result so far: 5221.675324
Subtract 308 from 360 to get 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 13:
If we divide 520 by 77, we get 6 and a remainder of 58.
The number 6 becomes the next digit in our result. 
Result so far: 5221.6753246
Deduct 462 from 520 and we're left 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.

On to step 14:
The number 77 fits into 580 7 times, leaving a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 5221.67532467
If we take 539 away from 580, we end up 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.

The final outcome is 5221.67532467, with a leftover of 4.1e-08.