We're dividing 501503 by 2 
The aim is to understand the frequency of 2 in 501503.

Going ahead to step 1:
If we divide 5 by 2, we get 2 and a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtract 4 from 5 to get 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 2

Step 2:
10 divided by 2 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
Subtracting 10 from 10 leaves us with 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 2

Advancing to step 3:
If we divide 1 by 2, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 250.0
Subtract 0 from 1 to get 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 2

Moving on to step 4:
2 goes into 15 7 times with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 2507.0
Subtract 14 from 15 to get 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 2

Moving on to step 5:
When dividing 10 by 2, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 25075.0
Deduct 10 from 10 and we're left with 0.
Take the next digit (3) from the dividend and append it to 0, then repeat: 3 / 2

Going ahead to step 6:
2 can be fit into 3 1 times, resulting in a remainder of 1.
The next digit of our result is 1. 
Result so far: 250751.0
The remainder is 1 after subtracting 2 from 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
The number 2 fits into 10 5 times, leaving a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 250751.5
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.

On to step 8:
2 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 250751.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.

On to step 9:
2 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 250751.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.

Our division results in 250751.5 with a remaining 0.0.