We're dividing 866706 by 4 
The aim is to understand the frequency of 4 in 866706.

Going ahead to step 1:
4 goes into 8 2 times with a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 0 after subtracting 8 from 8.
Append the next digit (6) from the dividend to 0 and continue with: 6 / 4

Step 2:
The number 4 fits into 6 1 times, leaving a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Deduct 4 from 6 and we're left with 2.
Append the next digit (6) from the dividend to 2 and continue with: 26 / 4

Advancing to step 3:
4 goes into 26 6 times with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 216.0
The remainder is 2 after subtracting 24 from 26.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 4

Step 4:
The number 4 fits into 27 6 times, leaving a remainder of 3.
Put 6 as the next digit of the answer. 
Result so far: 2166.0
If we subtract 24 from 27, we get 3.
Bring next digit (0) of the dividend behind the 3 and repeat the process: 30 / 4

Moving on to step 5:
4 goes into 30 7 times with a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 21667.0
Subtract 28 from 30 to get 2.
Fetch the next digit (6) from the dividend, attach it to 2 and continue: 26 / 4

On to step 6:
4 goes into 26 6 times with a remainder of 2.
The next digit of our result is 6. 
Result so far: 216676.0
If we subtract 24 from 26, we 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.

Going ahead to step 7:
When dividing 20 by 4, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 216676.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.

Moving on to step 8:
The number 4 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 216676.5
Subtracting 0 from 0 leaves us 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.

Advancing to step 9:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 216676.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.

After the division, we end up with 216676.5 and a remainder of 0.0.