We look at the division of 542374 by 4 
The aim is to understand the frequency of 4 in 542374.

Moving on to step 1:
The number 4 fits into 5 1 times, leaving a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 4 away from 5, we end up with 1.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 4

On to step 2:
When dividing 14 by 4, we get 3 with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Subtracting 12 from 14 leaves us with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 4

Going ahead to step 3:
4 can be fit into 22 5 times, resulting in a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 135.0
Deduct 20 from 22 and we're left with 2.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 4

Going ahead to step 4:
4 can be fit into 23 5 times, resulting in a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 1355.0
Subtract 20 from 23 to get 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 4

Step 5:
When dividing 37 by 4, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 13559.0
If we take 36 away from 37, we end up with 1.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 4

Step 6:
The number 4 fits into 14 3 times, leaving a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 135593.0
If we subtract 12 from 14, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
When dividing 20 by 4, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 135593.5
If we take 20 away from 20, 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.

Moving on to step 8:
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: 135593.5
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.

Let's proceed to step 9:
If we divide 0 by 4, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 135593.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.

The quotient of the division is 135593.5, and the remainder is 0.0.