OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
László Tóth, A survey of the alternating sum-of-divisors function, Acta Universitatis Sapientiae, Mathematica, Vol. 5, No. 1 (2013), pp. 93-107. See p. 101, eq. (17).
László Tóth, Alternating Sums Concerning Multiplicative Arithmetic Functions, Journal of Integer Sequences, Vol. 20 (2017), Article 17.2.1. See section 4.14, p. 35.
FORMULA
EXAMPLE
Fractions begin with 1, 2, 5/2, 17/6, 37/12, 43/12, 15/4, 79/20, 573/140, 152/35, 311/70, 484/105, ...
MATHEMATICA
f[p_, e_] := Sum[(-1)^(e-k)*p^k, {k, 0, e}]; beta[1] = 1; beta[n_] := Times @@ f @@@ FactorInteger[n]; Numerator[Accumulate[Table[1/beta[n], {n, 1, 50}]]]
PROG
(PARI) beta(n) = {my(f = factor(n)); prod(i=1, #f~, p = f[i, 1]; e = f[i, 2]; sum(k = 0, e, (-1)^(e-k)*p^k)); }
list(nmax) = {my(s = 0); for(k = 1, nmax, s += 1 / beta(k); print1(numerator(s), ", "))};
CROSSREFS
KEYWORD
nonn,easy,frac
AUTHOR
Amiram Eldar, Dec 27 2024
STATUS
approved