We look at the division of 238966 by 2 
The aim is to understand the frequency of 2 in 238966.

Going ahead to step 1:
2 divided by 2 is 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 2 from 2 and we're left with 0.
Fetch the next digit (3) from the dividend, attach it to 0 and continue: 3 / 2

On to step 2:
If we divide 3 by 2, we get 1 and a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 11.0
If we take 2 away from 3, we end up with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 2

On to step 3:
2 goes into 18 9 times with a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 119.0
If we take 18 away from 18, we end up with 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 2

Advancing to step 4:
9 divided by 2 is 4 with a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 1194.0
If we take 8 away from 9, we end up with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 2

On to step 5:
When dividing 16 by 2, we get 8 with a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 11948.0
Subtracting 16 from 16 leaves us with 0.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 2

Going ahead to step 6:
If we divide 6 by 2, we get 3 and a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 119483.0
Subtracting 6 from 6 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.

Moving on to step 7:
If we divide 0 by 2, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 119483.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.

Advancing to step 8:
If we divide 0 by 2, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 119483.0
If we take 0 away from 0, 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.

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