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

Advancing to step 1:
When dividing 1 by 4, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 4

Let's proceed to step 2:
4 goes into 16 4 times with a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtract 16 from 16 to get 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 4

On to step 3:
When dividing 4 by 4, we get 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 41.0
If we subtract 4 from 4, we get 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 4

Going ahead to step 4:
4 goes into 1 0 times with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 410.0
If we take 0 away from 1, we end up with 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 4

Let's proceed to step 5:
If we divide 10 by 4, we get 2 and a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 4102.0
The remainder is 2 after subtracting 8 from 10.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 4

On to step 6:
22 divided by 4 is 5 with a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 41025.0
If we subtract 20 from 22, 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:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 41025.5
Subtract 20 from 20 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.

On to step 8:
If we divide 0 by 4, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 41025.5
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.

Advancing to step 9:
When dividing 0 by 4, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 41025.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.

The final result is 41025.5 with a remainder of 0.0.