|
Search: id:A145799
|
|
|
| A145799 |
|
a(n) = the largest integer that is a (odd) palindrome when represented in binary and that occurs in the binary representation of n. |
|
+0 2
|
|
| 1, 1, 3, 1, 5, 3, 7, 1, 9, 5, 5, 3, 5, 7, 15, 1, 17, 9, 9, 5, 21, 5, 7, 3, 9, 5, 27, 7, 7, 15, 31, 1, 33, 17, 17, 9, 9, 9, 9, 5, 9, 21, 21, 5, 45, 7, 15, 3, 17, 9, 51, 5, 21, 27, 27, 7, 9, 7, 27, 15, 15, 31, 63, 1, 65, 33, 33, 17, 17, 17, 17, 9, 73, 9, 9, 9, 9, 9, 15, 5, 17, 9, 9, 21, 85, 21, 21
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
COMMENT
|
For n = power of 2, n >= 4, the longest-lengthed binary palindrome is a string of 0's and is the numerical equivalent of 0 (with leading 0's). But for n = power of 2, 1 is always the numerically largest binary palindrome included in the binary representation of n.
This sequence contains, by definition, those binary palindromes that are odd, ie those palindromes without leading zeros. In other words, only integers occurring in sequence A006995 occur in this sequence.
a(2^k*A006995(n)) = A006995(n). [From Ray Chandler (rayjchandler(AT)sbcglobal.net), Oct 26 2008]
|
|
LINKS
|
Leroy Quet, Home Page (listed in lieu of email address)
|
|
EXAMPLE
|
20 in binary is 10100. The largest binary palindrome included in this binary representation is 101, which is 5 in decimal. So a(20) = 5.
|
|
CROSSREFS
|
A006995, A145800
Sequence in context: A161825 A099551 A036233 this_sequence A098985 A072963 A161955
Adjacent sequences: A145796 A145797 A145798 this_sequence A145800 A145801 A145802
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Leroy Quet Oct 19 2008
|
|
EXTENSIONS
|
Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Oct 26 2008
|
|
|
Search completed in 0.002 seconds
|