OFFSET
1,3
LINKS
FORMULA
G.f.: Sum_{k>=1} (k*(k + 1)/2)*x^(k*(k+1)/2)/(1 + x^(k*(k+1)/2)).
a(n) = Sum_{d|n} (-1)^(n/d+1)*A010054(d)*d.
EXAMPLE
L.g.f.: L(x) = x - x^2/2 + 4*x^3/3 - x^4/4 + x^5/5 + 2*x^6/6 + x^7/7 - x^8/8 + 4*x^9/9 + 9*x^10/10 + ...
exp(L(x)) = 1 + x + x^3 + x^4 + x^6 + x^7 + x^9 + 2*x^10 + x^11 + x^13 + x^14 + x^15 + 2*x^16 + ... + A024940(n)*x^n + ...
MATHEMATICA
nmax = 77; Rest[CoefficientList[Series[Log[Product[1 + x^(k (k + 1)/2), {k, 1, nmax}]], {x, 0, nmax}], x] Range[0, nmax]]
nmax = 77; Rest[CoefficientList[Series[Sum[k (k + 1)/2 x^(k (k + 1)/2)/(1 + x^(k (k + 1)/2)), {k, 1, nmax}], {x, 0, nmax}], x]]
Table[DivisorSum[n, (-1)^(n/# + 1) # &, IntegerQ[(8 # + 1)^(1/2)] &], {n, 77}]
PROG
(PARI)
A010054(n) = issquare(8*n + 1);
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 20 2018
STATUS
approved