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

Moving on to step 1:
If we divide 4 by 2, we get 2 and a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 0 after subtracting 4 from 4.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 2

Let's proceed to step 2:
The number 2 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 20.0
If we take 0 away from 0, we end up with 0.
Grab the next digit (3) from the dividend, add it to 0, then carry on: 3 / 2

Advancing to step 3:
The number 2 fits into 3 1 times, leaving a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 201.0
Subtract 2 from 3 to get 1.
Bring next digit (0) of the dividend behind the 1 and repeat the process: 10 / 2

Step 4:
2 can be fit into 10 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 2015.0
Deduct 10 from 10 and we're left with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 2

Going ahead to step 5:
2 goes into 4 2 times with a remainder of 0.
The next digit of our result is 2. 
Result so far: 20152.0
Subtracting 4 from 4 leaves us with 0.
Grab the next digit (2) from the dividend, add it to 0, then carry on: 2 / 2

Moving on to step 6:
2 divided by 2 is 1 with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 201521.0
If we take 2 away from 2, 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.

Let's proceed to step 7:
If we divide 0 by 2, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 201521.0
If we subtract 0 from 0, we 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 8:
When dividing 0 by 2, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 201521.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.

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