OFFSET
1,2
COMMENTS
Conjecture: m is a term if and only if 1<=m<=9 or m is a palindrome of odd length 2k+1 such that the sum of the k-th and (k+1)-th decimal digits is less than or equal to 9. - Chai Wah Wu, May 30 2026
Also palindromes p such that 11*p is a palindrome with an even number of digits. - David A. Corneth, May 30 2026
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import count, islice
def A071272_gen():
for n in count(1):
m = (n*10**len(s:=str(n))+int(s[::-1]))//11
if (t:=str(m))==t[::-1]:
yield m
(PARI) is(n) = {if(!ispal(n), return(0)); ispal(11*n) && #digits(11*n) % 2 == 0}
ispal(n) = n == fromdigits(Vecrev(digits(n))) \\ David A. Corneth, May 30 2026
CROSSREFS
KEYWORD
nonn,easy,base,changed
AUTHOR
Amarnath Murthy, Jun 07 2002
EXTENSIONS
More terms from Sean A. Irvine, Jul 07 2024
STATUS
approved
