OFFSET
1,3
FORMULA
G.f.: Sum_{k>=1} (-1)^(k + 1) * theta_2(x^(k/2)) / (2 * x^(k/8)).
a(n) = Sum_{d|n} (-1)^(n/d + 1) * A010054(d).
MATHEMATICA
nmax = 85; CoefficientList[Series[Sum[x^(k (k + 1)/2)/(1 + x^(k (k + 1)/2)), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
Table[Sum[(-1)^(n/d + 1) Boole[IntegerQ[Sqrt[8 d + 1]]], {d, Divisors[n]}], {n, 1, 85}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Nov 21 2019
STATUS
approved