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.
%I A303594 #8 May 27 2018 17:08:16 %S A303594 2,2,3,3,4,4,5,5,5,5,5,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8, %T A303594 8,8,8,8,8,8,8,7,7,7,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9, %U A303594 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10 %N A303594 Number of bits in binary expansion of A294994(n). %H A303594 Rémy Sigrist, <a href="/A303594/b303594.txt">Table of n, a(n) for n = 1..10000</a> %o A303594 (PARI) s = 0; v = 2; for (n=1, 101, print1 (#binary(v) ", "); s += 2^v; forprime (p=2, oo, if (!bittest(s, p) && hammingweight(bitxor(p, v))<=2, v = p; break))) \\ _Rémy Sigrist_, May 27 2018 %Y A303594 Cf. A035100, A294994, A303593. %K A303594 nonn %O A303594 1,1 %A A303594 _N. J. A. Sloane_, May 27 2018