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.

A118586 Numbers whose binary expansion contains group of at least two 1's followed by a nonempty group of 0's.

This page as a plain text file.
%I A118586 #9 Feb 20 2022 22:38:16
%S A118586 6,12,14,24,28,30,48,56,60,62,96,112,120,124,126,192,224,240,248,252,
%T A118586 254,384,448,480,496,504,508,510,768,896,960,992,1008,1016,1020,1022,
%U A118586 1536,1792,1920,1984,2016,2032,2040,2044,2046,3072,3584,3840,3968,4032
%N A118586 Numbers whose binary expansion contains group of at least two 1's followed by a nonempty group of 0's.
%C A118586 All terms are even.
%H A118586 Michael S. Branicky, <a href="/A118586/b118586.txt">Table of n, a(n) for n = 1..10000</a>
%F A118586 Sum_{n>=1} 1/a(n) = -1 + A065442. - _Amiram Eldar_, Feb 20 2022
%e A118586 4080_10 = 111111110000_2.
%t A118586 Sort[Flatten[Table[Sum[2^k,{k,k1,k2}],{k1,1,10},{k2,k1+1,11}]]]
%o A118586 (Python)
%o A118586 from itertools import count, islice
%o A118586 def agen(): # generator of terms
%o A118586     for d in count(3):
%o A118586         for i in range(2, d):
%o A118586             yield int("1"*i + "0"*(d-i), 2)
%o A118586 print(list(islice(agen(), 50))) # _Michael S. Branicky_, Feb 20 2022
%Y A118586 Cf. A043569, A065442.
%K A118586 base,nonn
%O A118586 1,1
%A A118586 _Zak Seidov_, May 07 2006