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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A161001 Those positive integers n that when read in binary contains runs of 0's and 1's being of distinct lengths, the list of lengths forming a permutation of some number of consecutive positive integers. 2
1, 3, 4, 6, 7, 15, 24, 28, 31, 35, 39, 49, 55, 57, 59, 63, 112, 120, 127, 255, 391, 399, 451, 463, 480, 483, 487, 496, 511, 536, 540, 560, 572, 624, 632, 776, 782, 784, 798, 880, 888, 900, 902, 912, 926, 944, 956, 964, 966, 968, 974, 984, 988, 1023, 1984, 2016 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Think of binary n as a string S of 0's and 1's. By a "run" of 0's or 1's, it is meant either a substring all of contiguous 0's, each run bounded by 1's or the edge of S; or a substring all of contiguous 1's, each run bounded by 0's or the edge of S.

EXAMPLE

451 in binary is 111000011. This contains a run of three 1's, followed by a run of four 0's, followed by a run of two 1's. Since (3,4,2) is a permutation of some number of consecutive positive integers (2,3,4), then 451 is in the sequence.

CROSSREFS

Cf. A161000.

Sequence in context: A002982 A093707 A058639 * A139450 A168170 A069211

Adjacent sequences:  A160998 A160999 A161000 * A161002 A161003 A161004

KEYWORD

base,nonn

AUTHOR

Leroy Quet, Jun 01 2009

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jun 13 2009

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 05:45 EST 2012. Contains 205694 sequences.