OFFSET
1,1
LINKS
Iain Fox, Table of n, a(n) for n = 1..10000
EXAMPLE
4^2=16 has no digits in common with 4, but 4^3=64 has some, so 4 is in the sequence.
PROG
(PARI) a253600(n) = {sd = Set(vecsort(digits(n))); k=2; while (#setintersect(sd, Set(vecsort(digits(n^k)))) == 0, k++); k; }
isok(n) = a253600(n) == 3;
(PARI) is(n) = my(d(k)=Set(digits(n^k))); !#setintersect(d(1), d(2)) && #setintersect(d(1), d(3)) \\ Iain Fox, Aug 07 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Marcus, Jan 05 2015
STATUS
approved