Difference between revisions of "Legendre's Formula"

m
m
Line 1: Line 1:
'''Legendre's formula''' states that
+
'''Legendre's Formula''' states that
  
<cmath>e_p(n)=\sum_{i\geq 1} \lfloor \dfrac{n}{p^i}\rfloor =\frac{n-S_{p}(n)}{p-1}</cmath>
+
<cmath>e_p(n)=\sum_{i\geq 1} \left\lfloor \dfrac{n}{p^i}\right\rfloor =\frac{n-S_{p}(n)}{p-1}</cmath>
  
where <math>e_p(n)</math> is the exponent of <math>p</math> in the [[prime factorization]] of <math>n!</math>, and <math>S_p(n)</math> is the sum of the digits of n when written in base <math>p</math>.
+
where <math>e_p(n)</math> is the [[exponent]] of <math>p</math> in the [[prime factorization]] of <math>n!</math> and <math>S_p(n)</math> is the [[sum]] of the [[digit]]s of <math>n</math> when written in [[base]] <math>p</math>.
  
 
==Proof==
 
==Proof==

Revision as of 14:35, 6 August 2008

Legendre's Formula states that

\[e_p(n)=\sum_{i\geq 1} \left\lfloor \dfrac{n}{p^i}\right\rfloor =\frac{n-S_{p}(n)}{p-1}\]

where $e_p(n)$ is the exponent of $p$ in the prime factorization of $n!$ and $S_p(n)$ is the sum of the digits of $n$ when written in base $p$.

Proof

Template:Incomplete

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