404165 ÷ 4 
The aim is to understand the frequency of 4 in 404165.

On to step 1:
4 goes into 4 1 times with a remainder of 0.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 4 from 4 to get 0.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 4

On to step 2:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we take 0 away from 0, we end up with 0.
Bring next digit (4) of the dividend behind the 0 and repeat the process: 4 / 4

Going ahead to step 3:
If we divide 4 by 4, we get 1 and a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 101.0
If we take 4 away from 4, we end up with 0.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 4

On to step 4:
The number 4 fits into 1 0 times, leaving a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 1010.0
Subtract 0 from 1 to get 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 4

Going ahead to step 5:
4 goes into 16 4 times with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 10104.0
If we subtract 16 from 16, we get 0.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 4

On to step 6:
If we divide 5 by 4, we get 1 and a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 101041.0
If we subtract 4 from 5, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
The number 4 fits into 10 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 101041.2
If we subtract 8 from 10, 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.

Step 8:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 101041.25
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.

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

On to step 10:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 101041.25
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.

Our division results in 101041.25 with a remaining 0.0.