OFFSET
1,2
COMMENTS
a(10^k) = 10^k+1 for k > 0. Conjecture: a(n) in base n has 3 or fewer digits. - Chai Wah Wu, Nov 17 2019
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
EXAMPLE
For n=9, 191_10 = 232_9.
MATHEMATICA
Flatten@{1, Table[k = n; While[! PalindromeQ[k] || k != IntegerReverse[k, n], k++ ]; k, {n, 2, 200}]}
PROG
(PARI) ispal(k, b) = { my(d=digits(k, b)); d == Vecrev(d); }
a(n) = {if (n == 1, return(1)); my(k=n); while (!ispal(k, 10) || ! ispal(k, n), k++); k; } \\ Michel Marcus, Nov 18 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Price, Nov 09 2019
STATUS
approved