We're dividing 165173 by 5 
The aim is to understand the frequency of 5 in 165173.

Let's proceed to step 1:
1 divided by 5 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 5

Step 2:
When dividing 16 by 5, we get 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 3.0
The remainder is 1 after subtracting 15 from 16.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 5

Step 3:
If we divide 15 by 5, we get 3 and a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 33.0
Deduct 15 from 15 and we're left with 0.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 5

Moving on to step 4:
5 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 330.0
Subtract 0 from 1 to get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 5

Advancing to step 5:
5 can be fit into 17 3 times, resulting in a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 3303.0
Subtracting 15 from 17 leaves us with 2.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 5

Moving on to step 6:
If we divide 23 by 5, we get 4 and a remainder of 3.
Write down 4 as next digit of the result. 
Result so far: 33034.0
Subtract 20 from 23 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 7:
30 divided by 5 is 6 with a remainder of 0.
Use 6 as the next digit of our solution. 
Result so far: 33034.6
The remainder is 0 after subtracting 30 from 30.
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:
0 divided by 5 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 33034.6
Subtracting 0 from 0 leaves us 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.

On to step 9:
0 divided by 5 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 33034.6
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 33034.6 with a remaining 0.0.