OFFSET
1,8
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+1) * A000688(k).
MATHEMATICA
f[n_] := Times @@ (PartitionsP[Last[#]] & /@ FactorInteger[n]); f[1] = 1; Accumulate[Array[(-1)^(#+1) * f[#] &, 100]]
PROG
(PARI) f(n) = vecprod(apply(numbpart, factor(n)[, 2]));
lista(kmax) = {my(s = 0); for(k = 1, kmax, s += (-1)^(k+1) * f(k); print1(s, ", "))};
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Amiram Eldar, Mar 05 2024
STATUS
approved