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

On to step 1:
7 divided by 18 is 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 18

Step 2:
71 divided by 18 is 3 with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 17 after subtracting 54 from 71.
Include the next digit (6) from the dividend after 17, then repeat: 176 / 18

Advancing to step 3:
18 can be fit into 176 9 times, resulting in a remainder of 14.
Use 9 as the next digit of our solution. 
Result so far: 39.0
If we take 162 away from 176, we end up with 14.
Append the next digit (1) from the dividend to 14 and continue with: 141 / 18

Advancing to step 4:
18 can be fit into 141 7 times, resulting in a remainder of 15.
Record the quotient 7 as the next digit in the result. 
Result so far: 397.0
The remainder is 15 after subtracting 126 from 141.
Take the next digit (6) from the dividend and append it to 15, then repeat: 156 / 18

Going ahead to step 5:
If we divide 156 by 18, we get 8 and a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 3978.0
If we take 144 away from 156, we end up with 12.
Grab the next digit (5) from the dividend, add it to 12, then carry on: 125 / 18

On to step 6:
If we divide 125 by 18, we get 6 and a remainder of 17.
The number 6 becomes the next digit in our result. 
Result so far: 39786.0
Subtract 108 from 125 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
170 divided by 18 is 9 with a remainder of 8.
Use 9 as the next digit of our solution. 
Result so far: 39786.9
Subtracting 162 from 170 leaves us 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 8:
80 divided by 18 is 4 with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 39786.94
Deduct 72 from 80 and we're left 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.

Going ahead 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: 39786.944
The remainder is 8 after subtracting 72 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 39786.944, and the remainder is 0.0008.