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!)
A342036 Palindromes of even length only using 0 or 1. 2
0, 11, 1001, 1111, 100001, 101101, 110011, 111111, 10000001, 10011001, 10100101, 10111101, 11000011, 11011011, 11100111, 11111111, 1000000001, 1000110001, 1001001001, 1001111001, 1010000101, 1010110101, 1011001101, 1011111101, 1100000011, 1100110011 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Subsequence of A057148.
a(n) is a multiple of 11.
LINKS
FORMULA
a(n) = A007088(n) * 10^A070939(n) + A305989(n).
a(n) = A007088(A048701(n)). - Michel Marcus, Feb 26 2021
EXAMPLE
-------+-------+-------+-------+-------+-------
0 | 0 | 0 | 0 | |
1 | 1 | | | 1 | 1
3 | 11 | 3 | 11 | |
5 | 101 | | | 5 | 101
7 | 111 | | | 7 | 111
9 | 1001 | 9 | 1001 | |
15 | 1111 | 15 | 1111 | |
17 | 10001 | | | 17 | 10001
MATHEMATICA
Array[FromDigits@ Join[#, Reverse[#]] &@ IntegerDigits[#, 2] &, 26, 0] (* Michael De Vlieger, Feb 26 2021 *)
PROG
(Ruby)
def A(n)
str = n.to_s(2)
(str + str.reverse).to_i
end
def A342036(n)
(0..n).map{|i| A(i)}
end
p A342036(30)
(Python)
def a(n): b = bin(n)[2:]; return int(b+b[::-1])
print([a(n) for n in range(27)]) # Michael S. Branicky, Feb 26 2021
CROSSREFS
Sequence in context: A278753 A266670 A272654 * A004656 A143016 A152577
KEYWORD
nonn,easy,base
AUTHOR
Seiichi Manyama, Feb 26 2021
EXTENSIONS
Offset changed to 0 by Andrey Zabolotskiy, Dec 26 2022
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 August 13 22:54 EDT 2024. Contains 375146 sequences. (Running on oeis4.)