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

Advancing to step 1:
18 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 18

Step 2:
18 can be fit into 24 1 times, resulting in a remainder of 6.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 18 away from 24, we end up with 6.
Take the next digit (0) from the dividend and append it to 6, then repeat: 60 / 18

Let's proceed to step 3:
If we divide 60 by 18, we get 3 and a remainder of 6.
The next digit of our result is 3. 
Result so far: 13.0
Subtracting 54 from 60 leaves us with 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 18

On to step 4:
18 can be fit into 63 3 times, resulting in a remainder of 9.
The next digit of our result is 3. 
Result so far: 133.0
If we subtract 54 from 63, we get 9.
Bring next digit (6) of the dividend behind the 9 and repeat the process: 96 / 18

On to step 5:
If we divide 96 by 18, we get 5 and a remainder of 6.
Use 5 as the next digit of our solution. 
Result so far: 1335.0
Subtracting 90 from 96 leaves us with 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 18

Going ahead to step 6:
18 goes into 61 3 times with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 13353.0
If we take 54 away from 61, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
If we divide 70 by 18, we get 3 and a remainder of 16.
Put 3 as the next digit of the answer. 
Result so far: 13353.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.
Write down 8 as next digit of the result. 
Result so far: 13353.38
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.

Going ahead to step 9:
18 can be fit into 160 8 times, resulting in a remainder of 16.
The next digit of our result is 8. 
Result so far: 13353.388
If we subtract 144 from 160, we 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.

Our division results in 13353.388 with a remaining 0.0016.