Let's divide 964678 by 2
The aim is to understand the frequency of 2 in 964678.

Step 1:
When dividing 9 by 2, we get 4 with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we subtract 8 from 9, we get 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 2

Step 2:
The number 2 fits into 16 8 times, leaving a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 48.0
If we subtract 16 from 16, we get 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 2

Going ahead to step 3:
The number 2 fits into 4 2 times, leaving a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 482.0
If we subtract 4 from 4, we get 0.
Take the next digit (6) from the dividend and append it to 0, then repeat: 6 / 2

Advancing to step 4:
The number 2 fits into 6 3 times, leaving a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 4823.0
Subtracting 6 from 6 leaves us with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 2

Advancing to step 5:
7 divided by 2 is 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 48233.0
Subtract 6 from 7 to get 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 2

Step 6:
If we divide 18 by 2, we get 9 and a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 482339.0
Subtract 18 from 18 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 7:
0 divided by 2 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 482339.0
Subtract 0 from 0 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:
If we divide 0 by 2, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 482339.0
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.

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