OFFSET
1,2
MATHEMATICA
Total /@ Partition[Select[Range[0, 500], PalindromeQ], 2, 1]
PROG
(Python)
from itertools import chain, count, islice
def A309325_gen(): # generator of terms
c = 0
for a in chain.from_iterable(chain((int((s:=str(d))+s[-2::-1]) for d in range(10**l, 10**(l+1))), (int((s:=str(d))+s[::-1]) for d in range(10**l, 10**(l+1)))) for l in count(0)):
yield c+(c:=a)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ilya Gutkovskiy, Jul 23 2019
STATUS
approved