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

Moving on to step 1:
When dividing 1 by 4, we get 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 4

On to step 2:
4 can be fit into 16 4 times, resulting in a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 16 from 16 leaves us with 0.
Append the next digit (6) from the dividend to 0 and continue with: 6 / 4

Step 3:
The number 4 fits into 6 1 times, leaving a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 41.0
Subtracting 4 from 6 leaves us with 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 4

Advancing to step 4:
The number 4 fits into 22 5 times, leaving a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 415.0
Subtract 20 from 22 to get 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 4

Let's proceed to step 5:
When dividing 28 by 4, we get 7 with a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 4157.0
If we take 28 away from 28, we end up with 0.
Fetch the next digit (4) from the dividend, attach it to 0 and continue: 4 / 4

Advancing to step 6:
When dividing 4 by 4, we get 1 with a remainder of 0.
The next digit of our result is 1. 
Result so far: 41571.0
Subtract 4 from 4 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 7:
When dividing 0 by 4, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 41571.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.

Let's proceed to step 8:
If we divide 0 by 4, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 41571.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.

The final outcome is 41571.0, with a leftover of 0.0.