login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A305435
Number of proper divisors of n of the form 2^k + 1 for k >= 0.
4
0, 0, 0, 1, 0, 2, 0, 1, 1, 2, 0, 2, 0, 1, 2, 1, 0, 3, 0, 2, 1, 1, 0, 2, 1, 1, 2, 1, 0, 3, 0, 1, 1, 2, 1, 3, 0, 1, 1, 2, 0, 2, 0, 1, 3, 1, 0, 2, 0, 2, 2, 1, 0, 3, 1, 1, 1, 1, 0, 3, 0, 1, 2, 1, 1, 3, 0, 2, 1, 2, 0, 3, 0, 1, 2, 1, 0, 2, 0, 2, 2, 1, 0, 2, 2, 1, 1, 1, 0, 4, 0, 1, 1, 1, 1, 2, 0, 1, 3, 2, 0, 3, 0, 1, 2
OFFSET
1,6
COMMENTS
a(n) is the number of terms of A000051 less than n that divide n.
LINKS
FORMULA
a(n) = Sum_{d|n, d<n} A209229(d-1).
a(n) = A305436(n) - A209229(n-1).
MATHEMATICA
Table[DivisorSum[n, 1 &, And[IntegerQ@ Log2[# - 1], # < n] &], {n, 105}] (* Michael De Vlieger, Jun 11 2018 *)
PROG
(PARI)
A209229(n) = (n && !bitand(n, n-1));
A305435(n) = sumdiv(n, d, (d<n)*A209229(d-1));
CROSSREFS
Cf. also A305426.
Sequence in context: A359244 A204427 A178146 * A350658 A114708 A084927
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 11 2018
STATUS
approved