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.

A379518 Denominators of the partial sums of the reciprocals of the unitary totient function (A047994).

Original entry on oeis.org

1, 1, 2, 6, 12, 12, 4, 28, 56, 56, 280, 840, 280, 840, 210, 42, 336, 336, 1008, 1008, 1008, 5040, 55440, 55440, 55440, 55440, 720720, 720720, 102960, 102960, 102960, 3191760, 3191760, 199485, 1595880, 797940, 199485, 398970, 1595880, 11171160, 1117116, 279279
Offset: 1

Views

Author

Amiram Eldar, Dec 24 2024

Keywords

Crossrefs

Cf. A047994, A177754, A370899, A379517 (numerators), A379520.

Programs

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

Formula

a(n) = denominator(Sum_{k=1..n} 1/A047994(k)).