We look at the division of 508866 by 78 
The aim is to understand the frequency of 78 in 508866.

Going ahead to step 1:
If we divide 5 by 78, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 78

Moving on to step 2:
78 goes into 50 0 times with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Append the next digit (8) from the dividend to 50 and continue with: 508 / 78

Advancing to step 3:
When dividing 508 by 78, we get 6 with a remainder of 40.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
If we take 468 away from 508, we end up with 40.
Append the next digit (8) from the dividend to 40 and continue with: 408 / 78

On to step 4:
408 divided by 78 is 5 with a remainder of 18.
Use 5 as the next digit of our solution. 
Result so far: 65.0
The remainder is 18 after subtracting 390 from 408.
Take the next digit (6) from the dividend and append it to 18, then repeat: 186 / 78

On to step 5:
The number 78 fits into 186 2 times, leaving a remainder of 30.
Put 2 as the next digit of the answer. 
Result so far: 652.0
Subtract 156 from 186 to get 30.
Bring next digit (6) of the dividend behind the 30 and repeat the process: 306 / 78

Let's proceed to step 6:
78 goes into 306 3 times with a remainder of 72.
The next digit of our result is 3. 
Result so far: 6523.0
Subtract 234 from 306 to get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Moving on to step 7:
If we divide 720 by 78, we get 9 and a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 6523.9
Subtracting 702 from 720 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 8:
78 goes into 180 2 times with a remainder of 24.
Write down 2 as next digit of the result. 
Result so far: 6523.92
Deduct 156 from 180 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 9:
When dividing 240 by 78, we get 3 with a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 6523.923
The remainder is 6 after subtracting 234 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 10:
If we divide 60 by 78, we get 0 and a remainder of 60.
Use 0 as the next digit of our solution. 
Result so far: 6523.923
The remainder is 60 after subtracting 0 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Advancing to step 11:
If we divide 600 by 78, we get 7 and a remainder of 54.
Record the quotient 7 as the next digit in the result. 
Result so far: 6523.92307
Subtracting 546 from 600 leaves us with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Advancing to step 12:
540 divided by 78 is 6 with a remainder of 72.
Write down 6 as next digit of the result. 
Result so far: 6523.923076
Subtracting 468 from 540 leaves us with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Step 13:
If we divide 720 by 78, we get 9 and a remainder of 18.
Use 9 as the next digit of our solution. 
Result so far: 6523.9230769
Subtracting 702 from 720 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 14:
78 goes into 180 2 times with a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 6523.92307692
If we subtract 156 from 180, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

In conclusion, the division gives 6523.92307692 with a balance of 2.4e-08.