We divide 666784 by 4
The aim is to understand the frequency of 4 in 666784.

Step 1:
6 divided by 4 is 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 4 away from 6, we end up with 2.
Fetch the next digit (6) from the dividend, attach it to 2 and continue: 26 / 4

Step 2:
4 can be fit into 26 6 times, resulting in a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 24 from 26, we get 2.
Include the next digit (6) from the dividend after 2, then repeat: 26 / 4

Moving on to step 3:
The number 4 fits into 26 6 times, leaving a remainder of 2.
The next digit of our result is 6. 
Result so far: 166.0
If we take 24 away from 26, we end up with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 4

Let's proceed to step 4:
4 can be fit into 27 6 times, resulting in a remainder of 3.
The number 6 becomes the next digit in our result. 
Result so far: 1666.0
Subtract 24 from 27 to get 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 4

Advancing to step 5:
38 divided by 4 is 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 16669.0
The remainder is 2 after subtracting 36 from 38.
Include the next digit (4) from the dividend after 2, then repeat: 24 / 4

Let's proceed to step 6:
The number 4 fits into 24 6 times, leaving a remainder of 0.
The next digit of our result is 6. 
Result so far: 166696.0
If we take 24 away from 24, we end up 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.

Let's proceed to step 7:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 166696.0
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.

Let's proceed to step 8:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 166696.0
If we subtract 0 from 0, we 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.

Our division results in 166696.0 with a remaining 0.0.