We divide 166589 by 18
The aim is to understand the frequency of 18 in 166589.

On to step 1:
18 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 18

Let's proceed to step 2:
The number 18 fits into 16 0 times, leaving a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Bring next digit (6) of the dividend behind the 16 and repeat the process: 166 / 18

Step 3:
18 can be fit into 166 9 times, resulting in a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 9.0
Deduct 162 from 166 and we're left with 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 18

Let's proceed to step 4:
18 goes into 45 2 times with a remainder of 9.
Write down 2 as next digit of the result. 
Result so far: 92.0
If we subtract 36 from 45, we get 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 18

Step 5:
98 divided by 18 is 5 with a remainder of 8.
The number 5 becomes the next digit in our result. 
Result so far: 925.0
Subtracting 90 from 98 leaves us with 8.
Fetch the next digit (9) from the dividend, attach it to 8 and continue: 89 / 18

Let's proceed to step 6:
89 divided by 18 is 4 with a remainder of 17.
Record the quotient 4 as the next digit in the result. 
Result so far: 9254.0
The remainder is 17 after subtracting 72 from 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 7:
If we divide 170 by 18, we get 9 and a remainder of 8.
Write down 9 as next digit of the result. 
Result so far: 9254.9
Subtract 162 from 170 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
The number 18 fits into 80 4 times, leaving a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 9254.94
If we take 72 away from 80, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
18 goes into 80 4 times with a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 9254.944
If we take 72 away from 80, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

In conclusion, the division gives 9254.944 with a balance of 0.0008.