Let's divide 788966 by 4
The aim is to understand the frequency of 4 in 788966.

Moving on to step 1:
If we divide 7 by 4, we get 1 and a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 4 from 7 to get 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 4

Advancing to step 2:
38 divided by 4 is 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we subtract 36 from 38, we get 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 4

Going ahead to step 3:
4 can be fit into 28 7 times, resulting in a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 197.0
Subtracting 28 from 28 leaves us with 0.
Bring next digit (9) of the dividend behind the 0 and repeat the process: 9 / 4

Going ahead to step 4:
When dividing 9 by 4, we get 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 1972.0
The remainder is 1 after subtracting 8 from 9.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 4

Advancing to step 5:
4 goes into 16 4 times with a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 19724.0
If we take 16 away from 16, we end up with 0.
Append the next digit (6) from the dividend to 0 and continue with: 6 / 4

On to step 6:
4 goes into 6 1 times with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 197241.0
Subtract 4 from 6 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
If we divide 20 by 4, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 197241.5
Subtract 20 from 20 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
When dividing 0 by 4, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 197241.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 197241.5
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 197241.5, with a leftover of 0.0.