OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import E
def ispal(s): return all(s[i] == s[-1-i] for i in range(len(s)//2))
def aupto(maxdigs):
digits_e = str(E.n(maxdigs+4))[2:]
return [int(s) for s in (digits_e[j:k+1] for k in range(1, maxdigs)
for j in range(k)) if s[0] != '0' and ispal(s)]
print(aupto(240)) # Michael S. Branicky, Jun 28 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Matthew Howells (mathmatt(AT)gmail.com), Nov 13 2004
EXTENSIONS
Offset changed and a(50) and beyond from Michael S. Branicky, Jun 28 2021
STATUS
approved
