login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A357844 Denominators of the partial alternating sums of the reciprocals of the number of divisors function (A000005). 2
1, 2, 1, 3, 6, 12, 12, 6, 2, 4, 4, 12, 12, 6, 12, 60, 60, 60, 60, 20, 5, 20, 20, 40, 120, 120, 120, 120, 120, 15, 30, 5, 20, 5, 20, 180, 180, 90, 180, 360, 360, 45, 90, 45, 90, 180, 180, 180, 180, 180, 45, 90, 45, 360, 360, 45, 180, 45, 90, 180, 180, 45, 90, 630 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
See A357843 for more details.
LINKS
László Tóth, Alternating Sums Concerning Multiplicative Arithmetic Functions, Journal of Integer Sequences, Vol. 20 (2017), Article 17.2.1.
FORMULA
a(n) = denominator(Sum_{k=1..n} (-1)^(k+1)/d(k)), where d(k) = A000005(k).
MATHEMATICA
Denominator[Accumulate[Array[(-1)^(# + 1)/DivisorSigma[0, #] &, 60]]]
PROG
(PARI) lista(nmax) = {my(s = 0); for(k = 1, nmax, s += (-1)^(k+1) / numdiv(k); print1(denominator(s), ", "))};
(Python)
from fractions import Fraction
from sympy import divisor_count
def A357844(n): return sum(Fraction(1 if k&1 else -1, divisor_count(k)) for k in range(1, n+1)).denominator # Chai Wah Wu, Oct 16 2022
CROSSREFS
Cf. A000005, A307704, A357843 (numerators).
Similar sequences: A104529, A211178, A357821.
Sequence in context: A020992 A025110 A075346 * A104529 A095024 A049900
KEYWORD
nonn,frac
AUTHOR
Amiram Eldar, Oct 16 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 14 19:05 EDT 2024. Contains 375929 sequences. (Running on oeis4.)