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.

A353728 A115510(n) written in base 2.

This page as a plain text file.
%I A353728 #7 May 13 2022 14:05:58
%S A353728 1,11,10,110,100,101,111,1001,1000,1010,1011,1100,1101,1110,1111,
%T A353728 10001,10000,10010,10011,10100,10101,10110,10111,11000,11001,11010,
%U A353728 11011,11100,11101,11110,11111,100001,100000,100010,100011,100100,100101,100110,100111,101000,101001,101010,101011,101100,101101,101110,101111
%N A353728 A115510(n) written in base 2.
%o A353728 (Python)
%o A353728 from itertools import islice
%o A353728 def A353728_gen(): # generator of terms
%o A353728     yield 1
%o A353728     l1, s, b = 1, 2, set()
%o A353728     while True:
%o A353728         i = s
%o A353728         while True:
%o A353728             if i & l1 and not i in b:
%o A353728                 yield int(bin(i)[2:])
%o A353728                 l1 = i
%o A353728                 b.add(i)
%o A353728                 while s in b:
%o A353728                     b.remove(s)
%o A353728                     s += 1
%o A353728                 break
%o A353728             i += 1
%o A353728 A353728_list = list(islice(A353728_gen(),30)) # _Chai Wah Wu_, May 13 2022
%Y A353728 Cf. A115510; A064413, A064743, A064744.
%K A353728 nonn,base
%O A353728 1,2
%A A353728 _N. J. A. Sloane_, May 13 2022