|
| |
|
|
A162749
|
|
Write the n-th (odd) binary palindrome down in binary. If there are an even number of digits, then combine the middle two digits into one digit. If there are an odd number of digits, then double the middle digit. a(n) is the decimal result.
|
|
2
|
|
|
|
3, 1, 9, 15, 5, 7, 33, 45, 51, 63, 17, 21, 27
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
OFFSET
|
1,1
|
|
|
COMMENTS
|
a(n) is the A162750(n)th (odd) binary palindrome written in decimal. This sequence (A162749) is a permutation of the (odd) positive integers that are each palindromes when written in base 2.
|
|
|
LINKS
|
Table of n, a(n) for n=1..13.
|
|
|
EXAMPLE
|
The 8th binary palindrome is 21, which is 10101 in binary. Since there are an odd number of digits, double the middle digit to get 101101. a(8) is this written in decimal, which is 45.
51, the 13th palindrome when written in binary, is 110011 when written in base 2. Since this has an even number of digits, combine the middle two digits into one digit to get 11011. a(13) is the decimal equivalent of this, which is 27.
|
|
|
CROSSREFS
|
A006995, A162750
Sequence in context: A174510 A141237 A157399 * A094796 A056843 A076806
Adjacent sequences: A162746 A162747 A162748 * A162750 A162751 A162752
|
|
|
KEYWORD
|
base,more,nonn
|
|
|
AUTHOR
|
Leroy Quet, Jul 12 2009
|
|
|
STATUS
|
approved
|
| |
|
|