cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A379366 Denominators of the partial alternating sums of the reciprocals of Pillai's arithmetical function (A018804).

Original entry on oeis.org

1, 3, 15, 120, 360, 360, 4680, 936, 6552, 19656, 19656, 12285, 61425, 61425, 61425, 982800, 10810800, 10810800, 399999600, 399999600, 30769200, 30769200, 30769200, 30769200, 399999600, 79999920, 239999760, 239999760, 4559995440, 911999088, 55631944368, 27815972184
Offset: 1

Views

Author

Amiram Eldar, Dec 21 2024

Keywords

Crossrefs

Cf. A018804, A272718, A370895, A379364, A379365 (numerators).

Programs

  • Mathematica
    f[p_, e_] := (e*(p-1)/p + 1)*p^e; pillai[n_] := Times @@ f @@@ FactorInteger[n]; Denominator[Accumulate[Table[(-1)^(n+1)/pillai[n], {n, 1, 50}]]]
  • PARI
    pillai(n) = {my(f=factor(n)); prod(i=1, #f~, (f[i,2]*(f[i,1]-1)/f[i,1] + 1)*f[i,1]^f[i,2]);}
    list(nmax) = {my(s = 0); for(k = 1, nmax, s += (-1)^(k+1) / pillai(k); print1(denominator(s), ", "))};

Formula

a(n) = denominator(Sum_{k=1..n} (-1)^(k+1)/A018804(k)).