We're dividing 586240 by 4 
The aim is to understand the frequency of 4 in 586240.

Going ahead to step 1:
5 divided by 4 is 1 with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 4 from 5 to get 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 4

Step 2:
18 divided by 4 is 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 14.0
If we subtract 16 from 18, we get 2.
Bring next digit (6) of the dividend behind the 2 and repeat the process: 26 / 4

Let's proceed to step 3:
4 goes into 26 6 times with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 146.0
The remainder is 2 after subtracting 24 from 26.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 4

On to step 4:
22 divided by 4 is 5 with a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 1465.0
If we take 20 away from 22, we end up with 2.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 4

Moving on to step 5:
24 divided by 4 is 6 with a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 14656.0
The remainder is 0 after subtracting 24 from 24.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 4

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

Going ahead to step 7:
4 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 146560.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.

Advancing to step 8:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 146560.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 result is 146560.0 with a remainder of 0.0.