Mathematics Atlas

How Proof Is Made
Sign In
Text size
100%
Theme
Mathematical Object

Legendre's Formula

Number Theory

Legendre's formula gives the exponent of a prime p in the prime factorization of a factorial n!, expressing it as the sum over k of the floor of n divided by p to the power k. Equivalently, it can be computed from the sum of the base-p digits of n, subtracted from n and divided by p minus 1. The formula is a basic tool in number theory and combinatorics for determining how many trailing zeros a factorial has in a given base, since the number of trailing zeros in base 10 depends on the exponent of 5 dividing n!. This description is adapted from Wikipedia contributors under CC BY-SA 4.0; changes were made. https://creativecommons.org/licenses/by-sa/4.0/

Facts
Classification
Object Kind
Equation 1
Connections

Named After

Derived from the object's own name (unambiguous possessive-token match to exactly one live mathematician entity, w-bfill-g5-0924 browse backfill)

Sources
1. Legendre's Formula (Wikipedia)
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.