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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A147755 a(n) = the largest integer that, when represented in binary, occurs at least twice as a substring in the binary representation of n. 1
1, 0, 1, 1, 3, 0, 1, 2, 1, 1, 1, 3, 7, 0, 1, 2, 1, 2, 5, 2, 3, 1, 1, 2, 3, 3, 3, 7, 15, 0, 1, 2, 1, 4, 2, 2, 3, 2, 2, 10, 5, 2, 5, 3, 7, 1, 1, 2, 3, 2, 5, 6, 3, 3, 3, 3, 3, 7, 7, 15, 31, 0, 1, 2, 1, 4, 2, 2, 3, 4, 9, 2, 2, 4, 2, 3, 7, 2, 2, 2, 2, 10, 21, 5, 5, 2, 2, 5, 11, 3, 5, 7, 15, 1, 1, 2, 3, 4, 2, 6, 3, 2 (list; graph; refs; listen; history; internal format)
OFFSET

3,5

COMMENTS

The substrings (each equal to the binary representation of a(n)) may overlap in the binary representation of n.

EXAMPLE

21 in binary is 10101. 101 (5 in decimal) occurs twice in 10101: (101)01 and 10(101). Since no larger integer (when represented in binary) occurs more than once within 10101, then a(21) = 5.

CROSSREFS

A147756

Sequence in context: A097610 A161556 A129555 * A136748 A049765 A194801

Adjacent sequences:  A147752 A147753 A147754 * A147756 A147757 A147758

KEYWORD

base,nonn

AUTHOR

Leroy Quet Nov 11 2008

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Nov 14 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 14 20:38 EST 2012. Contains 205663 sequences.