We're dividing 497957 by 18 
The aim is to understand the frequency of 18 in 497957.

Advancing to step 1:
If we divide 4 by 18, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 18

Going ahead to step 2:
49 divided by 18 is 2 with a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtract 36 from 49 to get 13.
Include the next digit (7) from the dividend after 13, then repeat: 137 / 18

Let's proceed to step 3:
137 divided by 18 is 7 with a remainder of 11.
The next digit of our result is 7. 
Result so far: 27.0
The remainder is 11 after subtracting 126 from 137.
Grab the next digit (9) from the dividend, add it to 11, then carry on: 119 / 18

On to step 4:
18 can be fit into 119 6 times, resulting in a remainder of 11.
The number 6 becomes the next digit in our result. 
Result so far: 276.0
The remainder is 11 after subtracting 108 from 119.
Grab the next digit (5) from the dividend, add it to 11, then carry on: 115 / 18

Moving on to step 5:
If we divide 115 by 18, we get 6 and a remainder of 7.
Record the quotient 6 as the next digit in the result. 
Result so far: 2766.0
If we take 108 away from 115, we end up with 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 18

On to step 6:
18 goes into 77 4 times with a remainder of 5.
Put 4 as the next digit of the answer. 
Result so far: 27664.0
If we take 72 away from 77, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
18 goes into 50 2 times with a remainder of 14.
Record the quotient 2 as the next digit in the result. 
Result so far: 27664.2
Subtract 36 from 50 to get 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 8:
When dividing 140 by 18, we get 7 with a remainder of 14.
The next digit of our result is 7. 
Result so far: 27664.27
If we subtract 126 from 140, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 9:
The number 18 fits into 140 7 times, leaving a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 27664.277
Subtract 126 from 140 to get 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 outcome is 27664.277, with a leftover of 0.0014.