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

On to step 1:
When dividing 5 by 2, we get 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 4 from 5 leaves us with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 2

Going ahead to step 2:
The number 2 fits into 10 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 25.0
Deduct 10 from 10 and we're left with 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 2

Advancing to step 3:
2 can be fit into 5 2 times, resulting in a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 252.0
Deduct 4 from 5 and we're left with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 2

Going ahead to step 4:
2 can be fit into 12 6 times, resulting in a remainder of 0.
The next digit of our result is 6. 
Result so far: 2526.0
If we take 12 away from 12, we end up with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 2

Advancing to step 5:
The number 2 fits into 7 3 times, leaving a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 25263.0
If we subtract 6 from 7, we get 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 2

Going ahead to step 6:
If we divide 19 by 2, we get 9 and a remainder of 1.
The next digit of our result is 9. 
Result so far: 252639.0
Subtracting 18 from 19 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.

On to step 7:
2 can be fit into 10 5 times, resulting in a remainder of 0.
The next digit of our result is 5. 
Result so far: 252639.5
If we subtract 10 from 10, 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:
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: 252639.5
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.

Going ahead to step 9:
0 divided by 2 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 252639.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.

The final result is 252639.5 with a remainder of 0.0.