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.

A324816 Binary weight of A324815; number of 1-bits in common positions in 2*A156552(n) and A323243(n).

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 0, 1, 2, 0, 0, 1, 0, 1, 1, 2, 0, 2, 0, 1, 2, 0, 0, 1, 2, 0, 2, 0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 1, 1, 1, 0, 1, 0, 1, 2, 0, 0, 1, 2, 2, 1, 1, 0, 3, 2, 1, 1, 1, 0, 1, 0, 0, 2, 3, 1, 0, 0, 0, 1, 1, 0, 2, 0, 0, 1, 0, 2, 0, 0, 1, 1, 0, 0, 2, 1, 0, 1, 0, 0, 3, 1, 0, 0, 0, 2, 3, 0, 1, 1, 1, 0, 1, 0, 1, 1
Offset: 1

Views

Author

Antti Karttunen, Mar 17 2019

Keywords

Comments

Numbers 0 .. 7 occur for the first time in 1, 4, 9, 54, 162, 972, 2816, 3456. These are also the positions of records so far.

Crossrefs

Programs

  • PARI
    A156552(n) = {my(f = factor(n), p2 = 1, res = 0); for(i = 1, #f~, p = 1 << (primepi(f[i, 1]) - 1); res += (p * p2 * (2^(f[i, 2]) - 1)); p2 <<= f[i, 2]); res}; \\ From A156552 by David A. Corneth
    A324816(n) = hammingweight(bitand(2*A156552(n),A323243(n))); \\ Needs code also from A323243.

Formula

a(n) = A000120(A324815(n)).
a(p) = 0 for all primes p.
a(A324201(n)) = A000043(n).