We look at the division of 222145 by 18 
The aim is to understand the frequency of 18 in 222145.

Step 1:
18 goes into 2 0 times with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 18

Going ahead to step 2:
18 can be fit into 22 1 times, resulting in a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 18 from 22 and we're left with 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 18

On to step 3:
18 can be fit into 42 2 times, resulting in a remainder of 6.
The next digit of our result is 2. 
Result so far: 12.0
Deduct 36 from 42 and we're left with 6.
Include the next digit (1) from the dividend after 6, then repeat: 61 / 18

Step 4:
The number 18 fits into 61 3 times, leaving a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 123.0
Subtract 54 from 61 to get 7.
Take the next digit (4) from the dividend and append it to 7, then repeat: 74 / 18

Let's proceed to step 5:
18 goes into 74 4 times with a remainder of 2.
The next digit of our result is 4. 
Result so far: 1234.0
If we take 72 away from 74, we end up with 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 18

Moving on to step 6:
18 goes into 25 1 times with a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 12341.0
The remainder is 7 after subtracting 18 from 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
When dividing 70 by 18, we get 3 with a remainder of 16.
The number 3 becomes the next digit in our result. 
Result so far: 12341.3
Subtract 54 from 70 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 8:
When dividing 160 by 18, we get 8 with a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 12341.38
The remainder is 16 after subtracting 144 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 9:
The number 18 fits into 160 8 times, leaving a remainder of 16.
Write down 8 as next digit of the result. 
Result so far: 12341.388
Subtract 144 from 160 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

After the division, we end up with 12341.388 and a remainder of 0.0016.