Legendre's formula

Legendre's formula gives the exponent of a prime in the prime factorization of a factorial by summing the integer parts of successive quotients of the factorial's argument by powers of that prime.

Connect