OFFSET
1,2
COMMENTS
EXAMPLE
7^7 = 823543 has 5 distinct digits. 6^6, 5^5, 4^4, 3^3, 2^2, and 1^1 all do not have 5 distinct digits. So a(5) = 7.
PROG
(PARI)
a(n)=k=1; while(#vecsort(digits(k^k), , 8)!=n, k++); k
vector(10, n, a(n))
CROSSREFS
KEYWORD
nonn,base,fini,full,easy
AUTHOR
Derek Orr, Sep 30 2014
STATUS
approved