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

Advancing to step 1:
8 divided by 18 is 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 18

Going ahead to step 2:
When dividing 87 by 18, we get 4 with a remainder of 15.
Write down 4 as next digit of the result. 
Result so far: 4.0
Deduct 72 from 87 and we're left with 15.
Take the next digit (4) from the dividend and append it to 15, then repeat: 154 / 18

Let's proceed to step 3:
154 divided by 18 is 8 with a remainder of 10.
Put 8 as the next digit of the answer. 
Result so far: 48.0
If we take 144 away from 154, we end up with 10.
Append the next digit (2) from the dividend to 10 and continue with: 102 / 18

Moving on to step 4:
When dividing 102 by 18, we get 5 with a remainder of 12.
The number 5 becomes the next digit in our result. 
Result so far: 485.0
Subtracting 90 from 102 leaves us with 12.
Include the next digit (6) from the dividend after 12, then repeat: 126 / 18

Step 5:
When dividing 126 by 18, we get 7 with a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 4857.0
Subtracting 126 from 126 leaves us with 0.
Append the next digit (4) from the dividend to 0 and continue with: 4 / 18

Let's proceed to step 6:
When dividing 4 by 18, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 48570.0
If we take 0 away from 4, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
18 goes into 40 2 times with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 48570.2
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
18 goes into 40 2 times with a remainder of 4.
The next digit of our result is 2. 
Result so far: 48570.22
Subtract 36 from 40 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 48570.22 with a remainder of 0.004.