A056813 Largest non-unitary prime factor of LCM(1,...,n); that is, the largest prime which occurs to power > 1 in prime factorization of LCM(1,..,n).
1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
Offset: 1
Examples
The j-th prime appears at the position of its square, at n = prime(j)^2.
Links
- Jean-Christophe Hervé, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Table[f = Transpose[FactorInteger[LCM @@ Range[n]]]; pos = Position[f[[2]], ?(# > 1 &)]; If[pos == {}, 1, f[[1, pos[[-1]]]][[1]]], {n, 100}] (* _T. D. Noe, Oct 30 2013 *)
Formula
a(n) = prime(w) if prime(w)^2 <= n < prime(w+1)^2.
Extensions
Corrected offset by Jean-Christophe Hervé, Oct 29 2013
Comments