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).

Original entry on oeis.org

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, 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, 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
Offset: 1

Views

Author

Antti Karttunen, Aug 28 2018

Keywords

Crossrefs

Programs

  • PARI
    A318463(n) = { my(ands=0); fordiv(n,d,if(d<(n/d), ands += bitand(d,n/d))); (ands); };

Formula

a(n) = A000203(n) - A318461(n) = (A000203(n)-A318462(n))/2.