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

Moving on to step 1:
When dividing 3 by 2, we get 1 with a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 2 from 3 to get 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 2

On to step 2:
If we divide 11 by 2, we get 5 and a remainder of 1.
The next digit of our result is 5. 
Result so far: 15.0
If we subtract 10 from 11, we get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 2

Step 3:
2 can be fit into 15 7 times, resulting in a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 157.0
Deduct 14 from 15 and we're left with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 2

Let's proceed to step 4:
2 goes into 16 8 times with a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 1578.0
If we subtract 16 from 16, we get 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 2

Moving on to step 5:
2 can be fit into 4 2 times, resulting in a remainder of 0.
The next digit of our result is 2. 
Result so far: 15782.0
The remainder is 0 after subtracting 4 from 4.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 2

Going ahead to step 6:
2 goes into 2 1 times with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 157821.0
Deduct 2 from 2 and we're left with 0.
Append the next digit (9) from the dividend to 0 and continue with: 9 / 2

Advancing to step 7:
2 goes into 9 4 times with a remainder of 1.
Record the quotient 4 as the next digit in the result. 
Result so far: 1578214.0
The remainder is 1 after subtracting 8 from 9.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 2

Advancing to step 8:
If we divide 14 by 2, we get 7 and a remainder of 0.
The next digit of our result is 7. 
Result so far: 15782147.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.

Going ahead to step 9:
2 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 15782147.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.

Moving on to step 10:
2 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 15782147.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.

Our division results in 15782147.0 with a remaining 0.0.