close
login
A043080
a(n) = (s(n) + 9)/10, where s(n) is the n-th base 10 palindrome that starts with 1.
0
1, 2, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 101, 112, 123, 134, 145, 156, 167, 178, 189, 200, 1001, 1011, 1021, 1031, 1041, 1051, 1061, 1071, 1081, 1091, 1102, 1112, 1122, 1132, 1142, 1152, 1162, 1172, 1182, 1192, 1203, 1213, 1223, 1233, 1243, 1253, 1263, 1273
OFFSET
1,2
FORMULA
a(n) = (A043036(n)+9)/10. - Michael S. Branicky, Nov 04 2025
MATHEMATICA
(#+9)/10&/@Select[Range[100000], PalindromeQ[#]&&IntegerDigits[#][[1]]==1&] (* Harvey P. Dale, Jul 20 2024 *)
PROG
(Python)
from itertools import count, islice, product
def agen(): # generator of terms
yield 1
for d in count(2):
for r in product("0123456789", repeat=d//2-1):
left = "1" + "".join(r)
for mid in ([[""], "0123456789"][d&1]):
yield (int(left + mid + left[::-1])+9)//10
print(list(islice(agen(), 50))) # Michael S. Branicky, Nov 04 2025
CROSSREFS
Cf. A043036.
Sequence in context: A359207 A068225 A367810 * A108199 A137904 A175414
KEYWORD
nonn,base
EXTENSIONS
a(45)-a(50) from Stefano Spezia, Nov 04 2025
STATUS
approved