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

On to step 1:
If we divide 6 by 18, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Bring next digit (6) of the dividend behind the 6 and repeat the process: 66 / 18

Advancing to step 2:
18 goes into 66 3 times with a remainder of 12.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtracting 54 from 66 leaves us with 12.
Include the next digit (6) from the dividend after 12, then repeat: 126 / 18

Let's proceed to step 3:
18 goes into 126 7 times with a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 37.0
The remainder is 0 after subtracting 126 from 126.
Grab the next digit (5) from the dividend, add it to 0, then carry on: 5 / 18

Going ahead to step 4:
If we divide 5 by 18, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 370.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 18

On to step 5:
18 goes into 50 2 times with a remainder of 14.
Write down 2 as next digit of the result. 
Result so far: 3702.0
Subtract 36 from 50 to get 14.
Take the next digit (6) from the dividend and append it to 14, then repeat: 146 / 18

Step 6:
The number 18 fits into 146 8 times, leaving a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 37028.0
Deduct 144 from 146 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
The number 18 fits into 20 1 times, leaving a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 37028.1
Subtract 18 from 20 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 8:
18 goes into 20 1 times with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 37028.11
If we take 18 away from 20, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 37028.11, and the remainder is 0.002.