OFFSET
1,1
COMMENTS
Empirically the same as A001405(n)+1 apart from a(2) where 11^10=1001 in base 2 (3^2=9 in base 10) and a(3) where 11^11=11011 in base 2 (3^3=27 in base 10).
FORMULA
Conjecture: a(n) = binomial(n, floor(n/2))+1 for n>3.
EXAMPLE
For n=5 the minimum base required is 11, giving 11^5=15aa51 (12^5=248832 in base 10).
MATHEMATICA
a[n_] := Module[{b = 2, d}, While[(d = IntegerDigits[(b + 1)^n, b]) != Reverse[d], b++ ]; b] ;
Table[a[n], {n, 33}] (* James C. McMahon, Dec 13 2023 after PARI *)
PROG
(Python)
from itertools import count
from sympy.ntheory.factor_ import digits
def ispal(d): return d == d[::-1]
def a(n): return next(b for b in count(2) if ispal(digits((b+1)**n, b)[1:]))
print([a(n) for n in range(1, 21)]) # Michael S. Branicky, Dec 04 2023
(PARI) a(n) = my(b=2, d); while ((d=digits((b+1)^n, b)) != Vecrev(d), b++); b; \\ Michel Marcus, Dec 05 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
James Carruthers, Dec 03 2023
EXTENSIONS
a(8)-a(33) from Michael S. Branicky, Dec 04 2023
STATUS
approved