We divide 840646 by 18
The aim is to understand the frequency of 18 in 840646.

On to step 1:
18 goes into 8 0 times 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.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 18

Advancing to step 2:
18 goes into 84 4 times with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtracting 72 from 84 leaves us with 12.
Append the next digit (0) from the dividend to 12 and continue with: 120 / 18

Step 3:
When dividing 120 by 18, we get 6 with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 46.0
Subtracting 108 from 120 leaves us with 12.
Bring next digit (6) of the dividend behind the 12 and repeat the process: 126 / 18

Going ahead to step 4:
18 can be fit into 126 7 times, resulting in a remainder of 0.
The next digit of our result is 7. 
Result so far: 467.0
The remainder is 0 after subtracting 126 from 126.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 18

Moving on to step 5:
4 divided by 18 is 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 4670.0
If we take 0 away from 4, we end up with 4.
Append the next digit (6) from the dividend to 4 and continue with: 46 / 18

Moving on to step 6:
The number 18 fits into 46 2 times, leaving a remainder of 10.
The next digit of our result is 2. 
Result so far: 46702.0
Subtracting 36 from 46 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 7:
100 divided by 18 is 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 46702.5
If we take 90 away from 100, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

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

The final result is 46702.55 with a remainder of 0.01.