We divide 21246 by 2
The aim is to understand the frequency of 2 in 21246.

Advancing to step 1:
The number 2 fits into 2 1 times, leaving a remainder of 0.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 0 after subtracting 2 from 2.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 2

Step 2:
2 goes into 1 0 times with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 10.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 2

Advancing to step 3:
The number 2 fits into 12 6 times, leaving a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 106.0
Deduct 12 from 12 and we're left with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 2

Step 4:
2 can be fit into 4 2 times, resulting in a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 1062.0
If we subtract 4 from 4, we get 0.
Fetch the next digit (6) from the dividend, attach it to 0 and continue: 6 / 2

Step 5:
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: 10623.0
Subtract 6 from 6 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 6:
The number 2 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10623.0
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.

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: 10623.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 10623.0 and a remainder of 0.0.