OFFSET
1,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{k>0} binomial(k+2,2) * (-x)^k/(1 - x^k).
a(n) = Sum_{d|n} (-1)^d * binomial(d+2,2).
MATHEMATICA
a[n_] := DivisorSum[n, (-1)^#*Binomial[# + 2, 2] &]; Array[a, 50] (* Amiram Eldar, Jul 18 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, (-1)^d*binomial(d+2, 2));
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Seiichi Manyama, Jun 12 2023
STATUS
approved