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

Moving on to step 1:
If we divide 5 by 2, we get 2 and a remainder of 1.
The next digit of our result is 2. 
Result so far: 2.0
If we take 4 away from 5, we end up with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 2

On to step 2:
The number 2 fits into 10 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 25.0
If we take 10 away from 10, we end up with 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 2

Step 3:
4 divided by 2 is 2 with a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 252.0
Subtract 4 from 4 to get 0.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 2

Moving on to step 4:
2 can be fit into 2 1 times, resulting in a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 2521.0
Subtracting 2 from 2 leaves us with 0.
Grab the next digit (3) from the dividend, add it to 0, then carry on: 3 / 2

Moving on to step 5:
2 goes into 3 1 times with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 25211.0
Subtract 2 from 3 to get 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 2

Going ahead to step 6:
The number 2 fits into 10 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 252115.0
Subtracting 10 from 10 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.

Advancing to step 7:
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: 252115.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.

Advancing to step 8:
If we divide 0 by 2, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 252115.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.

The final result is 252115.0 with a remainder of 0.0.