login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A166111 A positive integer n is included if the longest contiguous run of similar digits in binary n is of 1's. 1
1, 2, 3, 5, 6, 7, 10, 11, 12, 13, 14, 15, 19, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 38, 39, 42, 43, 44, 45, 46, 47, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 71, 75, 76, 77, 78, 79, 83, 85, 86, 87, 89, 90, 91, 92, 93, 94, 95, 100, 101, 102, 103, 105, 106, 107 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For some n included in this sequence, it is possible that the longest run of 0's in binary n is of the same length as the longest run of 1's in binary n. (See sequence A090050.)
LINKS
MATHEMATICA
lcr1Q[n_]:=Module[{s=Split[IntegerDigits[n, 2]]}, Max[Length/@Select[s, MemberQ[ #, 1]&]] >= Max[Length/@Select[s, MemberQ[#, 0]&]]]; Select[ Range[ 120], lcr1Q] (* Harvey P. Dale, Feb 01 2019 *)
CROSSREFS
Sequence in context: A317092 A349019 A225354 * A004762 A061854 A367861
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Oct 06 2009
EXTENSIONS
Extended by Ray Chandler, Mar 12 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 11:24 EDT 2024. Contains 371967 sequences. (Running on oeis4.)