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!.

Facts
Classification
Object Kind
Equation 1
Legendre's Formula
Filter Results1 entry
Connections

Attributed To

Source Legendre's Formula (Wikipedia)

In Branch

Source Wolfram MathWorld: Legendre's Formula

Is Kind Of Object

Equation, Concepts

Named After

Principal Result Of

Source Legendre's Formula (Wikipedia)
Sources
1. Legendre's Formula (Wikipedia)
  • Lead section
    In mathematics, Legendre's formula gives an expression for the exponent of the largest power of a prime p that divides the factorial n!. It is named after Adrien-Marie Legendre.
  • Principal Result Of: Adrien-Marie Legendre, Lead sentence of the article on the result
    It is named after Adrien-Marie Legendre.
View the Source
Wolfram MathWorld: Legendre's Formula
Wolfram MathWorldIn Branch: Number Theory, Subject classifications
Quote, In Branch: Number Theory, Subject classifications
Number Theory Prime Numbers
View the Source
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.

Mathematics Atlas

How Proof Is Made
Sign In
Text size
100%
Theme