OFFSET
1,2
LINKS
Olivier Bordellès and Benoit Cloitre, An alternating sum involving the reciprocal of certain multiplicative functions, Journal of Integer Sequences, Vol. 16 (2013), Article 13.6.3.
László Tóth, Alternating Sums Concerning Multiplicative Arithmetic Functions, Journal of Integer Sequences, Vol. 20 (2017), Article 17.2.1.
FORMULA
a(n) = numerator(Sum_{k=1..n} (-1)^(k+1)/psi(k)).
EXAMPLE
Fractions begin with 1, 2/3, 11/12, 3/4, 11/12, 5/6, 23/24, 7/8, 23/24, 65/72, 71/72, 17/18, ...
MATHEMATICA
psi[n_] := n * Times @@ (1 + 1/Transpose[FactorInteger[n]][[1]]); psi[1] = 1; Numerator[Accumulate[1/Array[(-1)^(# + 1)*psi[#] &, 50]]]
PROG
(PARI) f(n) = n * sumdivmult(n, d, issquarefree(d)/d); \\ A001615
a(n) = numerator(sum(k=1, n, (-1)^(k+1)/f(k))); \\ Michel Marcus, Oct 15 2022
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Amiram Eldar, Oct 14 2022
STATUS
approved