OFFSET
1,2
EXAMPLE
For n = 8 we have a(8) = 8 and 88 is a palindrome in base 10;
for n = 9 we have a(9) = 9 and 99 is a palindrome in base 10;
for n = 10 we have a(10) = 101 and 10101 is a palindrome in base 10;
for n = 11 we have a(11) = 11 and 1111 is a palindrome in base 10;
for n = 12 we have a(12) = 21 and 1221 is a palindrome in base 10; etc.
PROG
(Python)
def ispal(s): return s == s[::-1]
def aupton(terms):
alst, seen = [1], {1}
for n in range(2, terms+1):
an = 1
while an in seen or not ispal(str(n) + str(an)): an += 1
alst.append(an); seen.add(an)
return alst
print(aupton(200)) # Michael S. Branicky, Aug 30 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Aug 30 2021
STATUS
approved