We divide 596104 by 4
The aim is to understand the frequency of 4 in 596104.

On to step 1:
4 goes into 5 1 times with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 4 away from 5, we end up with 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 4

Step 2:
The number 4 fits into 19 4 times, leaving a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
If we subtract 16 from 19, we get 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 4

Going ahead to step 3:
The number 4 fits into 36 9 times, leaving a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 149.0
If we subtract 36 from 36, we get 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 4

Going ahead to step 4:
The number 4 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 1490.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 4

Going ahead to step 5:
If we divide 10 by 4, we get 2 and a remainder of 2.
The next digit of our result is 2. 
Result so far: 14902.0
The remainder is 2 after subtracting 8 from 10.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 4

Let's proceed to step 6:
4 goes into 24 6 times with a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 149026.0
Subtracting 24 from 24 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.

Let's proceed to step 7:
When dividing 0 by 4, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 149026.0
Deduct 0 from 0 and we're left 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:
4 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 149026.0
If we take 0 away from 0, 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.

After the division, we end up with 149026.0 and a remainder of 0.0.