30371 divided by 18 
The aim is to understand the frequency of 18 in 30371.

Step 1:
3 divided by 18 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (0) of the dividend behind the 3 and repeat the process: 30 / 18

Step 2:
18 can be fit into 30 1 times, resulting in a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 12 after subtracting 18 from 30.
Append the next digit (3) from the dividend to 12 and continue with: 123 / 18

Advancing to step 3:
18 can be fit into 123 6 times, resulting in a remainder of 15.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we take 108 away from 123, we end up with 15.
Bring next digit (7) of the dividend behind the 15 and repeat the process: 157 / 18

Going ahead to step 4:
18 can be fit into 157 8 times, resulting in a remainder of 13.
Use 8 as the next digit of our solution. 
Result so far: 168.0
The remainder is 13 after subtracting 144 from 157.
Take the next digit (1) from the dividend and append it to 13, then repeat: 131 / 18

Moving on to step 5:
18 can be fit into 131 7 times, resulting in a remainder of 5.
Put 7 as the next digit of the answer. 
Result so far: 1687.0
The remainder is 5 after subtracting 126 from 131.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 6:
When dividing 50 by 18, we get 2 with a remainder of 14.
Record the quotient 2 as the next digit in the result. 
Result so far: 1687.2
Subtracting 36 from 50 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
18 goes into 140 7 times with a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 1687.27
The remainder is 14 after subtracting 126 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 8:
140 divided by 18 is 7 with a remainder of 14.
The number 7 becomes the next digit in our result. 
Result so far: 1687.277
Subtracting 126 from 140 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

The final result is 1687.277 with a remainder of 0.0014.