OFFSET
1,5
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. See section 4.8, pp. 27-28.
FORMULA
EXAMPLE
Fractions begin with 1, 0, 1, 1/2, 3/2, 1/2, 3/2, 7/6, 5/3, 2/3, 5/3, 7/6, ...
MATHEMATICA
Numerator[Accumulate[Table[(-1)^(n+1)/FiniteAbelianGroupCount[n], {n, 1, 100}]]]
PROG
(PARI) f(n) = vecprod(apply(numbpart, factor(n)[, 2]));
list(nmax) = {my(s = 0); for(k = 1, nmax, s += (-1)^(k+1) / f(k); print1(numerator(s), ", "))};
CROSSREFS
KEYWORD
nonn,easy,frac
AUTHOR
Amiram Eldar, Dec 21 2024
STATUS
approved