505246 ÷ 18 
The aim is to understand the frequency of 18 in 505246.

Moving on to step 1:
18 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 18

Step 2:
The number 18 fits into 50 2 times, leaving a remainder of 14.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 36 from 50 to get 14.
Take the next digit (5) from the dividend and append it to 14, then repeat: 145 / 18

Advancing to step 3:
When dividing 145 by 18, we get 8 with a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 28.0
The remainder is 1 after subtracting 144 from 145.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 18

On to step 4:
When dividing 12 by 18, we get 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 280.0
Deduct 0 from 12 and we're left with 12.
Bring next digit (4) of the dividend behind the 12 and repeat the process: 124 / 18

Moving on to step 5:
If we divide 124 by 18, we get 6 and a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 2806.0
If we subtract 108 from 124, we get 16.
Grab the next digit (6) from the dividend, add it to 16, then carry on: 166 / 18

Advancing to step 6:
When dividing 166 by 18, we get 9 with a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 28069.0
Deduct 162 from 166 and we're left 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.

Let's proceed to step 7:
If we divide 40 by 18, we get 2 and a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 28069.2
Deduct 36 from 40 and we're left 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:
40 divided by 18 is 2 with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 28069.22
If we take 36 away from 40, 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.

The final result is 28069.22 with a remainder of 0.004.