Let's divide 338618 by 18
The aim is to understand the frequency of 18 in 338618.

Moving on to step 1:
The number 18 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 18

Advancing to step 2:
18 can be fit into 33 1 times, resulting in a remainder of 15.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 18 from 33 leaves us with 15.
Grab the next digit (8) from the dividend, add it to 15, then carry on: 158 / 18

On to step 3:
If we divide 158 by 18, we get 8 and a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtracting 144 from 158 leaves us with 14.
Take the next digit (6) from the dividend and append it to 14, then repeat: 146 / 18

On to step 4:
When dividing 146 by 18, we get 8 with a remainder of 2.
The next digit of our result is 8. 
Result so far: 188.0
Subtracting 144 from 146 leaves us with 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 18

Step 5:
The number 18 fits into 21 1 times, leaving a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 1881.0
Deduct 18 from 21 and we're left with 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 18

Let's proceed to step 6:
18 goes into 38 2 times with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 18812.0
Subtracting 36 from 38 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 7:
When dividing 20 by 18, we get 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 18812.1
If we take 18 away from 20, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 8:
18 can be fit into 20 1 times, resulting in a remainder of 2.
The next digit of our result is 1. 
Result so far: 18812.11
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final result is 18812.11 with a remainder of 0.002.