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!)
A342040 Binary palindromes of odd length. 2
1, 101, 111, 10001, 10101, 11011, 11111, 1000001, 1001001, 1010101, 1011101, 1100011, 1101011, 1110111, 1111111, 100000001, 100010001, 100101001, 100111001, 101000101, 101010101, 101101101, 101111101, 110000011, 110010011, 110101011 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Subsequence of A057148.
LINKS
FORMULA
a(n) = A007088(A048700(n)).
MATHEMATICA
a[1] = 1; a[n_] := FromDigits[Join[#, {Mod[n, 2]}, Reverse[#]] &@ IntegerDigits[Floor[n/2], 2]]; Array[a, 26] (* Amiram Eldar, Apr 28 2021 *)
PROG
(Python)
def A342040(n):
s = bin(n)[2:]
return int(s+s[-2::-1]) # Chai Wah Wu, Feb 26 2021
CROSSREFS
Sequence in context: A283590 A279173 A279873 * A290413 A288904 A289039
KEYWORD
nonn,base,easy
AUTHOR
Seiichi Manyama, Feb 26 2021
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 September 16 18:59 EDT 2024. Contains 375977 sequences. (Running on oeis4.)