OFFSET
1,1
COMMENTS
0, 1, 5, 6 cannot be the last digit of any term. [0 added to list by Jon E. Schoenfield, Jan 29 2017]
The only terms with no repeated digits are 2, 3, 8, 9, 13, 14, 52, 72, 87, 92.
EXAMPLE
92 is a term because 92^6 = 606355001344 has no digit 2 or 9.
MATHEMATICA
fQ[n_] := Intersection[IntegerDigits[n], IntegerDigits[n^6]] == {}; Select[ Range@45000000, Mod[#, 5] > 1 && fQ@# &] (* Robert G. Wilson v, Jan 29 2017 *)
PROG
(PARI) isok(n) = #setintersect(Set(digits(n)), Set(digits(n^6))) == 0;
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Robert Israel and Altug Alkan, Jan 27 2017
STATUS
approved