What number is missing in the pattern?

486, 162, 54,
_ 6

The missing number in the pattern is 18.