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.

A346418 a(n) is the exponent of the largest power of n that divides the least common multiple of {1,2,...,n} (A003418). a(1) = 1.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1
Offset: 1

Views

Author

Amiram Eldar, Jul 16 2021

Keywords

Examples

			a(2) = 1 since A003418(2) = 2, and 2^1|A003418(2).
a(30) = 2 since A003418(30) = 2329089562800 = 30^2 * 2587877292, and 30^2|A003418(30).
		

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[n_] := IntegerExponent[LCM @@ Range[n], n]; Array[a, 100]
  • PARI
    a(n) = if (n==1, 1, valuation(lcm([1..n]), n)); \\ Michel Marcus, Jul 17 2021

Formula

a(n) <= omega(n), and a(n) < omega(n) whenever omega(n) > 1.
Max_{k=2..n} a(k) ~ log(n)/(log(log(n)) + o(1)) (Erdős, 1992).