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

Going ahead to step 1:
77 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 77

On to step 2:
50 divided by 77 is 0 with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Include the next digit (4) from the dividend after 50, then repeat: 504 / 77

Advancing to step 3:
The number 77 fits into 504 6 times, leaving a remainder of 42.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
If we take 462 away from 504, we end up with 42.
Bring next digit (0) of the dividend behind the 42 and repeat the process: 420 / 77

Advancing to step 4:
77 goes into 420 5 times with a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 65.0
The remainder is 35 after subtracting 385 from 420.
Bring next digit (0) of the dividend behind the 35 and repeat the process: 350 / 77

Let's proceed to step 5:
If we divide 350 by 77, we get 4 and a remainder of 42.
Write down 4 as next digit of the result. 
Result so far: 654.0
Subtracting 308 from 350 leaves us with 42.
Append the next digit (1) from the dividend to 42 and continue with: 421 / 77

On to step 6:
When dividing 421 by 77, we get 5 with a remainder of 36.
Put 5 as the next digit of the answer. 
Result so far: 6545.0
Subtract 385 from 421 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 7:
77 can be fit into 360 4 times, resulting in a remainder of 52.
The number 4 becomes the next digit in our result. 
Result so far: 6545.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.

On to step 8:
77 goes into 520 6 times with a remainder of 58.
Put 6 as the next digit of the answer. 
Result so far: 6545.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.

Going ahead to step 9:
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: 6545.467
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 10:
410 divided by 77 is 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 6545.4675
The remainder is 25 after subtracting 385 from 410.
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:
77 goes into 250 3 times with a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 6545.46753
Subtracting 231 from 250 leaves us 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.

Moving on to step 12:
190 divided by 77 is 2 with a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 6545.467532
If we subtract 154 from 190, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 13:
If we divide 360 by 77, we get 4 and a remainder of 52.
The number 4 becomes the next digit in our result. 
Result so far: 6545.4675324
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.

On to step 14:
520 divided by 77 is 6 with a remainder of 58.
Put 6 as the next digit of the answer. 
Result so far: 6545.46753246
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.

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