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.

A318463 a(n) = Sum_{d|n, d < n/d} (d AND n/d), where AND is bitwise-and (A004198).

This page as a plain text file.
%I A318463 #9 Jan 25 2024 12:35:19
%S A318463 0,0,1,0,1,2,1,0,1,0,1,2,1,2,2,0,1,2,1,6,4,2,1,4,1,0,2,6,1,8,1,0,4,0,
%T A318463 6,2,1,2,2,0,1,8,1,2,5,2,1,4,1,0,2,6,1,4,2,4,4,0,1,12,1,2,3,0,6,4,1,2,
%U A318463 4,8,1,12,1,0,7,2,4,8,1,12,4,0,1,16,2,2,2,12,1,16,6,6,4,2,2,8,1,6,11,6,1,4,1,8,16
%N A318463 a(n) = Sum_{d|n, d < n/d} (d AND n/d), where AND is bitwise-and (A004198).
%H A318463 Antti Karttunen, <a href="/A318463/b318463.txt">Table of n, a(n) for n = 1..16384</a>
%H A318463 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%H A318463 <a href="/index/Si#SIGMAN">Index entries for sequences related to sigma(n)</a>
%F A318463 a(n) = A000203(n) - A318461(n) = (A000203(n)-A318462(n))/2.
%o A318463 (PARI) A318463(n) = { my(ands=0); fordiv(n,d,if(d<(n/d), ands += bitand(d,n/d))); (ands); };
%Y A318463 Cf. A000203, A004198, A318458, A318460, A318461, A318462.
%K A318463 nonn,base
%O A318463 1,6
%A A318463 _Antti Karttunen_, Aug 28 2018