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

On to step 1:
18 goes into 8 0 times with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 18

Going ahead to step 2:
18 can be fit into 84 4 times, resulting in a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 72 from 84 leaves us with 12.
Fetch the next digit (2) from the dividend, attach it to 12 and continue: 122 / 18

On to step 3:
18 goes into 122 6 times with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 46.0
If we take 108 away from 122, we end up with 14.
Include the next digit (7) from the dividend after 14, then repeat: 147 / 18

Going ahead to step 4:
147 divided by 18 is 8 with a remainder of 3.
Write down 8 as next digit of the result. 
Result so far: 468.0
Subtract 144 from 147 to get 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 18

Going ahead to step 5:
When dividing 35 by 18, we get 1 with a remainder of 17.
Record the quotient 1 as the next digit in the result. 
Result so far: 4681.0
Deduct 18 from 35 and we're left with 17.
Fetch the next digit (4) from the dividend, attach it to 17 and continue: 174 / 18

On to step 6:
18 goes into 174 9 times with a remainder of 12.
Record the quotient 9 as the next digit in the result. 
Result so far: 46819.0
If we take 162 away from 174, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 7:
If we divide 120 by 18, we get 6 and a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 46819.6
If we subtract 108 from 120, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 8:
18 goes into 120 6 times with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 46819.66
Subtracting 108 from 120 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

After the division, we end up with 46819.66 and a remainder of 0.012.