

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



KEYWORD

base,nonn


AUTHOR



EXTENSIONS



STATUS

approved



