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!)
A029983 Squares which are palindromes in base 2. 16

%I #15 Jun 23 2022 15:42:50

%S 0,1,9,20457529,143784081,331130809,20074072489,1193532215121,

%T 10036851273801,41413201925481,155991531977649,320642706437001,

%U 4665141483989281,87463589042698969,152191954834044129

%N Squares which are palindromes in base 2.

%H Chai Wah Wu, <a href="/A029983/b029983.txt">Table of n, a(n) for n = 1..22</a>

%H Patrick De Geest, <a href="http://www.worldofnumbers.com/square.htm">Palindromic Squares</a>

%H G. J. Simmons, <a href="/A002778/a002778.pdf">On palindromic squares of non-palindromic numbers</a>, J. Rec. Math., 5 (No. 1, 1972), 11-19. [Annotated scanned copy]

%o (Python)

%o from itertools import count, islice

%o def A029983_gen(): # generator of terms

%o return filter(lambda k: (s:=bin(k)[2:])[:(t:=(len(s)+1)//2)]==s[:-t-1:-1],(k**2 for k in count(0)))

%o A029983_list = list(islice(A029983_gen(),10)) # _Chai Wah Wu_, Jun 23 2022

%Y Cf. A003166.

%K nonn,base

%O 1,3

%A _Patrick De Geest_

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 19 17:39 EDT 2024. Contains 371797 sequences. (Running on oeis4.)