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!)
A037970 Numbers whose maximal base-2 run length is 3. 5
7, 8, 14, 17, 23, 24, 28, 29, 34, 35, 39, 40, 46, 49, 55, 56, 57, 58, 59, 68, 69, 70, 71, 72, 78, 81, 87, 88, 92, 93, 98, 99, 103, 104, 110, 113, 114, 115, 116, 117, 118, 119, 136, 137, 138, 139, 140, 141, 142, 145, 151, 152, 156, 157, 162, 163, 167, 168, 174 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
PROG
(Python)
def ok(n):
b = bin(n)[2:]
return ("000" in b or "111" in b) and not ("0000" in b or "1111" in b)
print(list(filter(ok, range(175)))) # Michael S. Branicky, Jul 08 2021
CROSSREFS
Cf. A007088.
Subsequence of A136037.
Sequence in context: A047274 A037368 A281710 * A101517 A271953 A165465
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
a(55) and beyond from Michael S. Branicky, Jul 08 2021
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 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)