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.

A305426 Number of proper divisors of n of the form 2^k - 1 for k >= 1.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jun 11 2018

Keywords

Comments

a(n) is the number of terms of A000225 less than n that divide n.

Crossrefs

Cf. also A305435.

Programs

  • Mathematica
    Table[DivisorSum[n, 1 &, And[IntegerQ@ Log2[# + 1], # < n] &], {n, 105}] (* Michael De Vlieger, Jun 11 2018 *)
  • PARI
    A209229(n) = (n && !bitand(n,n-1));
    A036987(n) = A209229(1+n);
    A305426(n) = sumdiv(n,d,(dA036987(d));

Formula

a(n) = Sum_{d|n, dA036987(d).
a(n) = A154402(n) - A036987(n).