OFFSET
1,4
FORMULA
a(n) = Sum_{d|n, d <= sqrt(n)} (-1)^(d + n/d) * d^2.
MATHEMATICA
nmax = 70; CoefficientList[Series[Sum[k^2 x^(k^2)/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
Table[DivisorSum[n, (-1)^(# + n/#) #^2 &, # <= Sqrt[n] &], {n, 1, 70}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 07 2024
STATUS
approved