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.

A370784 a(n) is the denominator of the sum of the reciprocals of the squarefree divisors of the powerful part of n.

Original entry on oeis.org

1, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1, 2, 1, 3, 1, 2, 1, 1, 1, 2, 5, 1, 3, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 2, 7, 5, 1, 2, 1, 3, 1, 2, 1, 1, 1, 2, 1, 1, 3, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 5, 2, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1
Offset: 1

Views

Author

Amiram Eldar, Mar 02 2024

Keywords

Crossrefs

Cf. A005117, A057521, A295295, A332881, A370783 (numerators).

Programs

  • Mathematica
    a[n_] := Denominator[Times @@ (1 + 1/Select[FactorInteger[n], Last[#] > 1 &][[;; , 1]])]; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); denominator(prod(i = 1, #f~, if(f[i,2] == 1, 1, 1 + 1/f[i,1])));}

Formula

a(n) = A332881(A057521(n)).
a(n) = 1 if n is squarefree (A005117).