Legendre's formula, also known as Legendre's theorems or Legendre's formula for finding the exponent of a prime \( p \) in the factorization of \( n! \) (n factorial), provides a way to determine how many times a prime number divides \( n! \).
New to topics? Read the docs here!