login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A145799 a(n) = the largest integer that is a (odd) palindrome when represented in binary and that occurs in the binary representation of n. 1
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; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

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]

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 * A098985 A072963 A161955

Adjacent sequences:  A145796 A145797 A145798 * A145800 A145801 A145802

KEYWORD

base,nonn

AUTHOR

Leroy Quet Oct 19 2008

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Oct 26 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 21:56 EST 2012. Contains 205860 sequences.