A248077 Least number k > 0 such that k^k contains exactly n distinct digits.
1, 3, 4, 5, 7, 14, 9, 11, 13, 19
Offset: 1
Examples
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.
Programs
-
PARI
a(n)=k=1; while(#vecsort(digits(k^k), , 8)!=n, k++); k vector(10,n,a(n))
Comments