Apocalyptri number

Apocalyptri numbers are numbers of the form 3n containing the digits 666 in their decimal expansions.