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.

A304089 Binary weight of A304083.

This page as a plain text file.
%I A304089 #6 May 12 2018 14:45:08
%S A304089 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 A304089 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 A304089 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 A304089 Binary weight of A304083.
%H A304089 Antti Karttunen, <a href="/A304089/b304089.txt">Table of n, a(n) for n = 0..16383</a>
%H A304089 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%F A304089 a(n) = A000120(A304083(n)).
%F A304089 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 A304089 (PARI) A304089(n) = hammingweight(A304083(n)); \\ Needs also code from A304083.
%Y A304089 Cf. A000120, A304088, A304083.
%Y A304089 Cf. also A303780.
%K A304089 nonn,base
%O A304089 0,3
%A A304089 _Antti Karttunen_, May 06 2018