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

Advancing to step 1:
2 goes into 5 2 times with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 4 away from 5, we end up with 1.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 2

Advancing to step 2:
2 can be fit into 19 9 times, resulting in a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 29.0
Subtract 18 from 19 to get 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 2

On to step 3:
The number 2 fits into 14 7 times, leaving a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 297.0
If we take 14 away from 14, we end up with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 2

Advancing to step 4:
1 divided by 2 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 2970.0
If we subtract 0 from 1, we get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 2

Let's proceed to step 5:
When dividing 14 by 2, we get 7 with a remainder of 0.
Record the quotient 7 as the next digit in the result. 
Result so far: 29707.0
The remainder is 0 after subtracting 14 from 14.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 2

Let's proceed to step 6:
When dividing 5 by 2, we get 2 with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 297072.0
If we subtract 4 from 5, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
When dividing 10 by 2, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 297072.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.

Advancing to step 8:
2 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 297072.5
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.

Advancing to step 9:
2 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 297072.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 297072.5 with a remaining 0.0.