Difference between revisions of "Lucas' Theorem"
I like pie (talk | contribs) m |
Mathgeek2006 (talk | contribs) m (→Proof) |
||
Line 6: | Line 6: | ||
=== Proof === | === Proof === | ||
For all <math>1\leq k \leq p-1</math>, <math>\binom{p}{k}\equiv 0 \pmod{p}</math>. Then we have | For all <math>1\leq k \leq p-1</math>, <math>\binom{p}{k}\equiv 0 \pmod{p}</math>. Then we have | ||
− | < | + | <cmath>\begin{eqnarray*}(1+x)^p&\equiv &\binom{p}{0}+\binom{p}{1}x+\binom{p}{2}x^2+\cdots+\binom{p}{p-1}x^{p-1}+\binom{p}{p}x^p\\ |
− | &\equiv& 1+x^p\pmod{p}\end{eqnarray*}</ | + | &\equiv& 1+x^p\pmod{p}\end{eqnarray*}</cmath> |
Assume we have <math>(1+x)^{p^k}\equiv 1+x^{p^k}\pmod{p}</math>. Then | Assume we have <math>(1+x)^{p^k}\equiv 1+x^{p^k}\pmod{p}</math>. Then | ||
− | < | + | <cmath>\begin{eqnarray*}(1+x)^{p^{k+1}} |
&\equiv&\left((1+x)^{p^k}\right)^p\\ | &\equiv&\left((1+x)^{p^k}\right)^p\\ | ||
&\equiv&\left(1+x^{p^k}\right)^p\\ | &\equiv&\left(1+x^{p^k}\right)^p\\ | ||
&\equiv&\binom{p}{0}+\binom{p}{1}x^{p^k}+\binom{p}{2}x^{2p^k}+\cdots+\binom{p}{p-1}x^{(p-1)p^k}+\binom{p}{p}x^{p^{k+1}}\\ | &\equiv&\binom{p}{0}+\binom{p}{1}x^{p^k}+\binom{p}{2}x^{2p^k}+\cdots+\binom{p}{p-1}x^{(p-1)p^k}+\binom{p}{p}x^{p^{k+1}}\\ | ||
− | &\equiv&1+x^{p^{k+1}}\pmod{p}\end{eqnarray*}</ | + | &\equiv&1+x^{p^{k+1}}\pmod{p}\end{eqnarray*}</cmath> |
== Proof == | == Proof == |
Revision as of 18:10, 10 March 2015
Lucas' Theorem states that for any prime and any positive integers , if is the representation of in base and is the representation of in base (possibly with some leading s) then .
Contents
Lemma
For prime and ,
Proof
For all , . Then we have Assume we have . Then
Proof
Consider . If is the base representation of , then for all and . We then have
&=&[(1+x)^{p^m}]^{n_m}[(1+x)^{p^{m-1}}]^{n_{m-1}}\cdots[(1+x)^p]^{n_1}(1+x)^{n_0}\\ &\equiv&(1+x^{p^m})^{n_m}(1+x^{p^{m-1}})^{n_{m-1}}\cdots(1+x^p)^{n_1}(1+x)^{n_0}\pmod{p}
\end{eqnarray*}$ (Error compiling LaTeX. Unknown error_msg)We want the coefficient of in . Since , we want the coefficient of .
The coefficient of each comes from the binomial expansion of , which is . Therefore we take the product of all such , and thus we have
Note that .
This is equivalent to saying that there is no term in the expansion of .