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

On to step 1:
7 divided by 78 is 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 78

Advancing to step 2:
79 divided by 78 is 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 78 from 79, we get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 78

On to step 3:
78 can be fit into 14 0 times, resulting in a remainder of 14.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we take 0 away from 14, we end up with 14.
Grab the next digit (0) from the dividend, add it to 14, then carry on: 140 / 78

Let's proceed to step 4:
140 divided by 78 is 1 with a remainder of 62.
The next digit of our result is 1. 
Result so far: 101.0
If we subtract 78 from 140, we get 62.
Include the next digit (6) from the dividend after 62, then repeat: 626 / 78

Moving on to step 5:
78 can be fit into 626 8 times, resulting in a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 1018.0
Subtracting 624 from 626 leaves us with 2.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 78

Going ahead to step 6:
25 divided by 78 is 0 with a remainder of 25.
Put 0 as the next digit of the answer. 
Result so far: 10180.0
The remainder is 25 after subtracting 0 from 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 7:
When dividing 250 by 78, we get 3 with a remainder of 16.
Use 3 as the next digit of our solution. 
Result so far: 10180.3
Subtracting 234 from 250 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 8:
78 can be fit into 160 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 10180.32
Subtract 156 from 160 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
78 can be fit into 40 0 times, resulting in a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 10180.32
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 10:
400 divided by 78 is 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 10180.3205
Subtracting 390 from 400 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 11:
78 can be fit into 100 1 times, resulting in a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 10180.32051
Deduct 78 from 100 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 12:
If we divide 220 by 78, we get 2 and a remainder of 64.
The next digit of our result is 2. 
Result so far: 10180.320512
Subtract 156 from 220 to get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Let's proceed to step 13:
78 goes into 640 8 times with a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 10180.3205128
If we take 624 away from 640, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 14:
When dividing 160 by 78, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 10180.32051282
Deduct 156 from 160 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 10180.32051282 with a remaining 4e-09.