A262173 Number of nonnegative integers < 10^n that are palindromes or the sum of 2 palindromes.
1, 10, 92, 991, 8012, 90970, 733052, 8861377, 68729295, 875790193
Offset: 0
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
Total /@ Partition[Select[Range[0, 500], PalindromeQ], 2, 1]
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) A309325_list = list(islice(A309325_gen(),20)) # Chai Wah Wu, Jun 23 2022