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

Moving on to step 1:
8 divided by 2 is 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 4.0
The remainder is 0 after subtracting 8 from 8.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 2

Moving on to step 2:
The number 2 fits into 7 3 times, leaving a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 43.0
Subtracting 6 from 7 leaves us with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 2

Step 3:
When dividing 16 by 2, we get 8 with a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 438.0
If we take 16 away from 16, we end up with 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 2

Let's proceed to step 4:
5 divided by 2 is 2 with a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 4382.0
Deduct 4 from 5 and we're left with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 2

Let's proceed to step 5:
2 goes into 10 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 43825.0
The remainder is 0 after subtracting 10 from 10.
Fetch the next digit (4) from the dividend, attach it to 0 and continue: 4 / 2

Step 6:
If we divide 4 by 2, we get 2 and a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 438252.0
If we take 4 away from 4, 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.

On to step 7:
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: 438252.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.

Let's proceed to step 8:
0 divided by 2 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 438252.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.

In conclusion, the division gives 438252.0 with a balance of 0.0.