501840 divided by 78 
The aim is to understand the frequency of 78 in 501840.

Going ahead to step 1:
78 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 78

Going ahead to step 2:
50 divided by 78 is 0 with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Bring next digit (1) of the dividend behind the 50 and repeat the process: 501 / 78

Moving on to step 3:
When dividing 501 by 78, we get 6 with a remainder of 33.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
The remainder is 33 after subtracting 468 from 501.
Take the next digit (8) from the dividend and append it to 33, then repeat: 338 / 78

Moving on to step 4:
The number 78 fits into 338 4 times, leaving a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 64.0
Subtracting 312 from 338 leaves us with 26.
Append the next digit (4) from the dividend to 26 and continue with: 264 / 78

Going ahead to step 5:
When dividing 264 by 78, we get 3 with a remainder of 30.
Write down 3 as next digit of the result. 
Result so far: 643.0
The remainder is 30 after subtracting 234 from 264.
Bring next digit (0) of the dividend behind the 30 and repeat the process: 300 / 78

Going ahead to step 6:
300 divided by 78 is 3 with a remainder of 66.
Write down 3 as next digit of the result. 
Result so far: 6433.0
If we subtract 234 from 300, we get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

On to step 7:
When dividing 660 by 78, we get 8 with a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 6433.8
Subtracting 624 from 660 leaves us 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.

Moving on to step 8:
The number 78 fits into 360 4 times, leaving a remainder of 48.
Put 4 as the next digit of the answer. 
Result so far: 6433.84
Subtracting 312 from 360 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Let's proceed to step 9:
78 goes into 480 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 6433.846
Subtract 468 from 480 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 10:
120 divided by 78 is 1 with a remainder of 42.
The number 1 becomes the next digit in our result. 
Result so far: 6433.8461
Deduct 78 from 120 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 11:
78 can be fit into 420 5 times, resulting in a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 6433.84615
Subtract 390 from 420 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 12:
300 divided by 78 is 3 with a remainder of 66.
The number 3 becomes the next digit in our result. 
Result so far: 6433.846153
Subtract 234 from 300 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Step 13:
When dividing 660 by 78, we get 8 with a remainder of 36.
Put 8 as the next digit of the answer. 
Result so far: 6433.8461538
Subtract 624 from 660 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.

Advancing to step 14:
78 can be fit into 360 4 times, resulting in a remainder of 48.
Use 4 as the next digit of our solution. 
Result so far: 6433.84615384
Subtract 312 from 360 to get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

The final outcome is 6433.84615384, with a leftover of 4.8e-08.