login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A046260 Largest palindromic substring in 2^n. 3
1, 2, 4, 8, 6, 3, 6, 8, 6, 5, 4, 8, 9, 9, 8, 8, 55, 131, 262, 242, 8, 9, 9, 838, 777, 55, 88, 77, 545, 9, 737, 474, 949, 858, 717, 383, 767, 9, 77, 888, 777, 255552, 111, 222, 444, 888, 77, 3553, 767, 21312, 42624, 99, 737, 474, 9, 797, 575, 8558, 7117, 646, 606, 939 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A047813(A000079(n)). - Michel Marcus, Sep 19 2022
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
Sequence in context: A103546 A321043 A080868 * A254065 A354727 A329455
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, Jun 15 1998
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 00:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)