OFFSET
1,2
COMMENTS
MATHEMATICA
Join[{1}, Table[Module[{k=1}, While[Union[IntegerDigits[k^k, n]]!=Range[0, n-1], k++]; k], {n, 2, 70}]] (* Harvey P. Dale, Jul 29 2018 *)
PROG
(PARI)
a(n, b)=k=1; while(#vecsort(digits(k^k, b), , 8)!=n, if(#digits(k^k)>10^(n\2), return(0)); k++); k
print1(1, ", "); b=2; while(b<1000, print1(a(b, b), ", "); b++)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Oct 09 2014
STATUS
approved