OFFSET
2,1
COMMENTS
For the corresponding values of k^n, see A318779.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 2..229 (terms 2..165 from Jon E. Schoenfield)
FORMULA
a(n) = A318779(n)^(1/n).
EXAMPLE
a(2)=2 because 1^2 = 1 = 1_2 (not pandigital in base 2, since it contains no 0 digit), but 2^2 = 4 = 100_2.
a(3)=4 because 1^3 = 1 = 1_3, 2^3 = 8 = 22_3, and 3^3 = 27 = 1000_3 are all nonpandigital in base 3, but 4^3 = 64 = 2101_3.
a(16)=81: 81^16 = 3433683820292512484657849089281 = 2b56d4af8f7932278c797ebd01_16.
PROG
(Python)
from itertools import count
from sympy import integer_nthroot
from sympy.ntheory import digits
def A318780(n): return next(k for k in count(integer_nthroot((n**n-n)//(n-1)**2+n**(n-2)*(n-1)-1, n)[0]) if len(set(digits(k**n, n)[1:]))==n) # Chai Wah Wu, Mar 13 2024
CROSSREFS
Cf. A049363 (smallest pandigital number in base n), A185122 (smallest pandigital prime in base n), A260182 (smallest square that is pandigital in base n), A260117 (smallest triangular number that is pandigital in base n), A318725 (smallest k such that k! is pandigital in base n), A318779 (smallest n-th power that is pandigital in base n).
KEYWORD
nonn,base
AUTHOR
Jon E. Schoenfield, Sep 03 2018
STATUS
approved
