3

Is there a simple formula for $\mathsf{lcm}(1,2,\dots,n-1,n)$ that can be explicitly stated out?

Turbo
  • 6,221

1 Answers1

1

This is Landau's function. It can be written as $$ lcm(1,2,\ldots,n) = \prod_{p\le n} p^{\lfloor \log_p n \rfloor} $$ and so $$ lcm(1,2,\ldots,n) = e^{\psi(n)} $$

where $\psi$ is the second Chebyshev function: $$ \psi(x) = \sum_{p^k\le x}\log p = \sum_{p\le x}\lfloor\log_p x\rfloor\log p, $$

There is no explicit formula for $\psi$, but there are asymptotic results. For instance, $$ \psi(x) \sim x $$ which is equivalent to the prime number theorem. More detailed asymptotics are related to the Riemann Hypothesis.

lhf
  • 216,483