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 A352202 #10 May 14 2022 11:26:31 %S A352202 1,2,1,2,1,2,3,2,1,2,3,2,3,3,4,2,1,2,3,2,3,3,4,2,3,3,4,3,4,4,5,2,1,2, %T A352202 3,2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,1,2,3,2, %U A352202 3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,3,4,4,5,4 %N A352202 a(n) = binary weight of A115510(n). %o A352202 (Python 3.10+) %o A352202 # if Python version < 3.10, replace i.bit_count() with bin(i).count('1') %o A352202 from itertools import islice %o A352202 def A352202_gen(): # generator of terms %o A352202 yield 1 %o A352202 l1, s, b = 1, 2, set() %o A352202 while True: %o A352202 i = s %o A352202 while True: %o A352202 if i & l1 and not i in b: %o A352202 yield i.bit_count() %o A352202 l1 = i %o A352202 b.add(i) %o A352202 while s in b: %o A352202 b.remove(s) %o A352202 s += 1 %o A352202 break %o A352202 i += 1 %o A352202 A352202_list = list(islice(A352202_gen(),30)) # _Chai Wah Wu_, May 13 2022 %Y A352202 Cf. A115510. %K A352202 nonn,base %O A352202 1,2 %A A352202 _N. J. A. Sloane_, Mar 27 2022