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

Let's proceed to step 1:
2 goes into 4 2 times with a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 4 away from 4, we end up with 0.
Fetch the next digit (9) from the dividend, attach it to 0 and continue: 9 / 2

Going ahead to step 2:
9 divided by 2 is 4 with a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 24.0
Subtract 8 from 9 to get 1.
Include the next digit (9) from the dividend after 1, then repeat: 19 / 2

Let's proceed to step 3:
2 can be fit into 19 9 times, resulting in a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 249.0
The remainder is 1 after subtracting 18 from 19.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 2

Advancing to step 4:
The number 2 fits into 19 9 times, leaving a remainder of 1.
The next digit of our result is 9. 
Result so far: 2499.0
Deduct 18 from 19 and we're left with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 2

Advancing to step 5:
2 can be fit into 17 8 times, resulting in a remainder of 1.
Write down 8 as next digit of the result. 
Result so far: 24998.0
If we subtract 16 from 17, we get 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 2

Let's proceed to step 6:
2 goes into 12 6 times with a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 249986.0
If we subtract 12 from 12, we get 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 2

Let's proceed to step 7:
If we divide 2 by 2, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 2499861.0
Subtracting 2 from 2 leaves us with 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 2

Moving on to step 8:
If we divide 1 by 2, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 24998610.0
Subtracting 0 from 1 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 9:
If we divide 10 by 2, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 24998610.5
Deduct 10 from 10 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 10:
When dividing 0 by 2, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 24998610.5
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 11:
If we divide 0 by 2, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 24998610.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.

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