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

Advancing to step 1:
4 can be fit into 8 2 times, resulting in a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 0 after subtracting 8 from 8.
Grab the next digit (6) from the dividend, add it to 0, then carry on: 6 / 4

On to step 2:
If we divide 6 by 4, we get 1 and a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 21.0
The remainder is 2 after subtracting 4 from 6.
Grab the next digit (6) from the dividend, add it to 2, then carry on: 26 / 4

Moving on to step 3:
26 divided by 4 is 6 with a remainder of 2.
The next digit of our result is 6. 
Result so far: 216.0
Subtracting 24 from 26 leaves us with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 4

Let's proceed to step 4:
4 goes into 24 6 times with a remainder of 0.
Write down 6 as next digit of the result. 
Result so far: 2166.0
If we take 24 away from 24, we end up with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 4

Going ahead to step 5:
When dividing 7 by 4, we get 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 21661.0
If we subtract 4 from 7, we get 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 4

Moving on to step 6:
The number 4 fits into 38 9 times, leaving a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 216619.0
Subtract 36 from 38 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.

Advancing to step 7:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 216619.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.

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

Step 9:
4 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 216619.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.

The quotient of the division is 216619.5, and the remainder is 0.0.