Legendre's theorem states that the
Where
An alternate form of Legendre’s formula that involves the base-p expansion of
Where
The working of Legendre's theorem can be understood in more detail using the examples of the original and alternate forms given below.
The number
We take an example where
We can see that
Simplify and re-write:
Using this, we can deduce the value of
The equations above show a solved example using the prime factorization, and Legendre's original formula produces the same result.
In this example we let
Now, calculate as
Now that we have all the required values, plug them into the alternate form resulting in the equation as follows:
We can verify this result by comparing it with the exponent of
The exponent of
Legendre's theorem is used to prove Kummer's theorem. In a special case, it is used to prove that 4 divides
Free Resources