cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A037970 Numbers whose maximal base-2 run length is 3.

This page as a plain text file.
%I A037970 #13 Jul 08 2021 00:47:53
%S A037970 7,8,14,17,23,24,28,29,34,35,39,40,46,49,55,56,57,58,59,68,69,70,71,
%T A037970 72,78,81,87,88,92,93,98,99,103,104,110,113,114,115,116,117,118,119,
%U A037970 136,137,138,139,140,141,142,145,151,152,156,157,162,163,167,168,174
%N A037970 Numbers whose maximal base-2 run length is 3.
%H A037970 Michael S. Branicky, <a href="/A037970/b037970.txt">Table of n, a(n) for n = 1..10000</a>
%o A037970 (Python)
%o A037970 def ok(n):
%o A037970     b = bin(n)[2:]
%o A037970     return ("000" in b or "111" in b) and not ("0000" in b or "1111" in b)
%o A037970 print(list(filter(ok, range(175)))) # _Michael S. Branicky_, Jul 08 2021
%Y A037970 Cf. A007088.
%Y A037970 Subsequence of A136037.
%K A037970 nonn,base
%O A037970 1,1
%A A037970 _Clark Kimberling_
%E A037970 a(55) and beyond from _Michael S. Branicky_, Jul 08 2021