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

Going ahead to step 1:
5 divided by 2 is 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 4 from 5, we get 1.
Append the next digit (3) from the dividend to 1 and continue with: 13 / 2

Let's proceed to step 2:
2 can be fit into 13 6 times, resulting in a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
Deduct 12 from 13 and we're left with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 2

Let's proceed to step 3:
If we divide 18 by 2, we get 9 and a remainder of 0.
The next digit of our result is 9. 
Result so far: 269.0
Deduct 18 from 18 and we're left with 0.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 2

Going ahead to step 4:
If we divide 8 by 2, we get 4 and a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 2694.0
If we subtract 8 from 8, we get 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 2

On to step 5:
2 can be fit into 7 3 times, resulting in a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 26943.0
Subtract 6 from 7 to get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 2

On to step 6:
2 can be fit into 14 7 times, resulting in a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 269437.0
Subtracting 14 from 14 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.

On to step 7:
0 divided by 2 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 269437.0
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.

Moving on to step 8:
0 divided by 2 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 269437.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.

The final outcome is 269437.0, with a leftover of 0.0.