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

Going ahead to step 1:
The number 2 fits into 8 4 times, leaving a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtract 8 from 8 to get 0.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 2

Moving on to step 2:
If we divide 0 by 2, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 40.0
Subtracting 0 from 0 leaves us with 0.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 2

Going ahead to step 3:
When dividing 4 by 2, we get 2 with a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 402.0
Subtracting 4 from 4 leaves us with 0.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 2

On to step 4:
2 can be fit into 5 2 times, resulting in a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 4022.0
If we subtract 4 from 5, we get 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 2

Going ahead to step 5:
2 can be fit into 18 9 times, resulting in a remainder of 0.
The next digit of our result is 9. 
Result so far: 40229.0
The remainder is 0 after subtracting 18 from 18.
Fetch the next digit (6) from the dividend, attach it to 0 and continue: 6 / 2

On to step 6:
If we divide 6 by 2, we get 3 and a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 402293.0
If we subtract 6 from 6, 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.

On to step 7:
If we divide 0 by 2, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 402293.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.

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: 402293.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.

The final outcome is 402293.0, with a leftover of 0.0.