OFFSET
0,7
COMMENTS
a(n) = 0 iff n is in A067076, i.e., 2n+3 is prime.
a(n) is the number of positive integers of the form (n-3k)/(2k+1), 1 <= k <= n/3.
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = A070824(2n+3).
Sum_{k=1..n} a(k) ~ (log(n) + 2*gamma + 3*log(2) - 5)*n/2, where gamma is Euler's constant (A001620). - Amiram Eldar, Mar 10 2026
EXAMPLE
Since for n = 3 we have 2n+3 = 9 and only nontrivial divisor of 9 is 3, then a(3) = 1.
MATHEMATICA
a[n_] := DivisorSigma[0, 2*n+3] - 2; Array[a, 100, 0] (* Amiram Eldar, Mar 10 2026 *)
PROG
(PARI) a(n) = numdiv(2*n+3) - 2; \\ Michel Marcus, Feb 08 2016
(Magma) [NumberOfDivisors(2*n+3)-2: n in [0..100]]; // Vincenzo Librandi, Feb 08 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Shevelev, Jun 02 2009
EXTENSIONS
Edited by Charles R Greathouse IV, Oct 12 2009
More terms from Michel Marcus, Feb 08 2016
STATUS
approved
