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.

A051547 a(n) = lcm{ phi(1), ..., phi(n) }, where phi is Euler's totient function A000010.

Original entry on oeis.org

1, 1, 2, 2, 4, 4, 12, 12, 12, 12, 60, 60, 60, 60, 120, 120, 240, 240, 720, 720, 720, 720, 7920, 7920, 7920, 7920, 7920, 7920, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 55440, 1275120, 1275120, 1275120
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A000010, A076244 (distinct values), A076245 (n where a(n) > a(n-1)).

Programs

  • Mathematica
    FoldList[LCM @@ {#1, EulerPhi@ #2} &, Range@ 44] (* Michael De Vlieger, Dec 09 2018 *)
  • PARI
    a(n) = lcm(vector(n, k, eulerphi(k))); \\ Michel Marcus, Jul 30 2017
    
  • PARI
    apply( A051547(n)=lcm(apply(eulerphi,[2..n])), [1..50]) \\ Defines the function A051547; apply(...) for check & example. - M. F. Hasler, Dec 09 2018