Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #6 May 12 2018 14:45:08
%S 0,1,2,1,3,2,1,2,4,3,2,1,3,2,3,2,5,4,3,2,1,4,3,2,4,3,2,4,3,2,3,6,3,5,
%T 4,3,2,1,5,4,3,2,5,4,3,2,5,4,3,2,4,3,5,4,3,2,4,3,4,3,7,4,3,4,3,6,5,4,
%U 3,2,1,6,5,4,3,2,6,5,4,3,2,6,5,4,3,2,5,4,3,6,5,4,3,2,5,4,3,5,4,3,6,5,4,3,2,5
%N Binary weight of A304083.
%H Antti Karttunen, <a href="/A304089/b304089.txt">Table of n, a(n) for n = 0..16383</a>
%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%F a(n) = A000120(A304083(n)).
%F For all n >= 0, abs(a(n+1)-a(n)) = A000120(A304083(n+1) XOR A304083(n)), where XOR is a bitwise exclusive or, A003987.
%o (PARI) A304089(n) = hammingweight(A304083(n)); \\ Needs also code from A304083.
%Y Cf. A000120, A304088, A304083.
%Y Cf. also A303780.
%K nonn,base
%O 0,3
%A _Antti Karttunen_, May 06 2018