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

On to step 1:
The number 4 fits into 5 1 times, leaving a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 4 from 5 and we're left with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 4

Step 2:
The number 4 fits into 18 4 times, leaving a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 14.0
The remainder is 2 after subtracting 16 from 18.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 4

Moving on to step 3:
When dividing 25 by 4, we get 6 with a remainder of 1.
The next digit of our result is 6. 
Result so far: 146.0
The remainder is 1 after subtracting 24 from 25.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 4

Moving on to step 4:
The number 4 fits into 13 3 times, leaving a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 1463.0
Subtracting 12 from 13 leaves us with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 4

Moving on to step 5:
When dividing 18 by 4, we get 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 14634.0
If we subtract 16 from 18, we get 2.
Include the next digit (0) from the dividend after 2, then repeat: 20 / 4

On to step 6:
When dividing 20 by 4, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 146345.0
Deduct 20 from 20 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.

Step 7:
The number 4 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 146345.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 146345.0
The remainder is 0 after subtracting 0 from 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 146345.0 with a balance of 0.0.