OFFSET
0,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
2^41 = 2199023{255552}.
PROG
(Python)
def c(s): return s[0] != "0" and s == s[::-1]
def a(n):
s = str(2**n)
ss = (s[i:j] for i in range(len(s)) for j in range(i+1, len(s)+1))
return max(int(w) for w in ss if c(w))
print([a(n) for n in range(62)]) # Michael S. Branicky, Sep 18 2022
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, Jun 15 1998
STATUS
approved