OFFSET
1,4
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
László Tóth, Alternating Sums Concerning Multiplicative Arithmetic Functions, Journal of Integer Sequences, Vol. 20 (2017), Article 17.2.1.
FORMULA
a(n) = Sum_{k=1..n} (-1)^k*A000005(k).
a(n) = n*log(n)/2 + (gamma - log(2) - 1/2)*n + O(n^(131/416 + eps)) (Tóth, 2017). - Amiram Eldar, Oct 14 2022
MATHEMATICA
nmax = 70; Rest[CoefficientList[Series[1/(1 - x) Sum[(-x)^k/(1 - (-x)^k), {k, 1, nmax}], {x, 0, nmax}], x]]
Table[Sum[(-1)^k DivisorSigma[0, k], {k, 1, n}], {n, 1, 70}]
Accumulate[Array[(-1)^#*DivisorSigma[0, #] &, 70]] (* Amiram Eldar, Oct 14 2022 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Apr 22 2019
STATUS
approved