# Difference between revisions of "Legendre's Formula"

m |
m |
||

Line 9: | Line 9: | ||

We use a counting argument. | We use a counting argument. | ||

− | We could say that <math>e_p(n!)</math> is equal to the number of multiples of <math>p</math> less than <math>n</math>, or <math>\left\lfloor \frac{n}{p}\right\rfloor</math>. But the multiples of <math>p^2</math> are only counted once, when they should be counted twice. So we need to add <math>\lfloor \frac{n}{p^2}\rfloor</math> on. But this only counts the multiples of <math>p^3</math> twice, when we need to count them thrice. Therefore we must add a <math>\lfloor \frac{n}{p^3}\rfloor</math> on. We continue like this to get <math>e_p(n!)=\sum_{i=1}^{\infty} \left\lfloor \dfrac{n}{p^i}\right\rfloor</math>. This makes sense, because the terms of this series tend to 0. | + | We could say that <math>e_p(n!)</math> is equal to the number of multiples of <math>p</math> less than <math>n</math>, or <math>\left\lfloor \frac{n}{p}\right\rfloor</math>. But the multiples of <math>p^2</math> are only counted once, when they should be counted twice. So we need to add <math>\left\lfloor \frac{n}{p^2}\right\rfloor</math> on. But this only counts the multiples of <math>p^3</math> twice, when we need to count them thrice. Therefore we must add a <math>\left\lfloor \frac{n}{p^3}\right\rfloor</math> on. We continue like this to get <math>e_p(n!)=\sum_{i=1}^{\infty} \left\lfloor \dfrac{n}{p^i}\right\rfloor</math>. This makes sense, because the terms of this series tend to 0. |

=== Part 2 === | === Part 2 === |

## Revision as of 21:18, 13 December 2017

**Legendre's Formula** states that

where is a prime and is the exponent of in the prime factorization of and is the sum of the digits of when written in base .

## Proofs

### Part 1

We use a counting argument.

We could say that is equal to the number of multiples of less than , or . But the multiples of are only counted once, when they should be counted twice. So we need to add on. But this only counts the multiples of twice, when we need to count them thrice. Therefore we must add a on. We continue like this to get . This makes sense, because the terms of this series tend to 0.

### Part 2

Let the base representation of be where the are digits in base Then, the base representation of is Note that the infinite sum of these numbers (which is ) is

*This article is a stub. Help us out by expanding it.*