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

Going ahead to step 1:
The number 4 fits into 5 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 4 from 5 leaves us with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 4

Step 2:
4 goes into 11 2 times with a remainder of 3.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Subtracting 8 from 11 leaves us with 3.
Take the next digit (5) from the dividend and append it to 3, then repeat: 35 / 4

Step 3:
If we divide 35 by 4, we get 8 and a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
Subtracting 32 from 35 leaves us with 3.
Append the next digit (4) from the dividend to 3 and continue with: 34 / 4

Going ahead to step 4:
The number 4 fits into 34 8 times, leaving a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 1288.0
If we take 32 away from 34, we end up with 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 4

Step 5:
22 divided by 4 is 5 with a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 12885.0
Subtracting 20 from 22 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 6:
If we divide 20 by 4, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 12885.5
The remainder is 0 after subtracting 20 from 20.
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 7:
When dividing 0 by 4, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12885.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.

Step 8:
4 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 12885.5
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.

Our division results in 12885.5 with a remaining 0.0.