Math 2.0

Number theory Proof

Proof of Lucas's theorem by generating functions

Builds on Prime numberCongruence modulo nBinomial coefficientBinomial theoremFreshman's dreamPolynomial ringIntegers modulo nCharacteristic of a ringDivision algorithm

Proof

  1. Let pp be a prime number and m=∑i=0kmipim = \sum_{i=0}^{k} m_i p^i, n=∑i=0knipin = \sum_{i=0}^{k} n_i p^i with digits 0≤mi,ni<p0 \le m_i, n_i < p.
  2. Let R=(ℤ/pℤ)[x]R = (\mathbb{Z}/p\mathbb{Z})[x] be the polynomial ring over the integers modulo p. It is a commutative ring. In RR, the sum of jj copies of 11 is the class of jj, which is 00 for j=pj = p and nonzero for 0<j<p0 < j < p.
  3. So RR has characteristic pp. By the freshman's dream, (1+x)p=1+xp(1 + x)^p = 1 + x^p in RR.
  4. By induction on ii, (1+x)pi=1+xpi(1 + x)^{p^i} = 1 + x^{p^i} in RR. The case i=0i = 0 is clear. If it holds for ii, then (1+x)pi+1=(1+xpi)p=1+xpi+1(1+x)^{p^{i+1}} = (1 + x^{p^i})^p = 1 + x^{p^{i+1}}, by the freshman's dream applied to 11 and xpix^{p^i}.
  5. By the binomial theorem in RR, for each natural number NN, (1+x)N=∑j=0N(Nj)‾xj(1 + x)^N = \sum_{j=0}^{N} \overline{\binom{N}{j}} x^j. Here the bar is the class modulo pp of the binomial coefficient.
  6. So the coefficient of xnx^n in (1+x)m(1+x)^m is the class of (mn)\binom{m}{n}. This also holds when n>mn > m, since the coefficient is then 00 and (mn)=0\binom{m}{n} = 0 by convention.
  7. Since m=∑imipim = \sum_i m_i p^i, step 4 gives (1+x)m=∏i=0k((1+x)pi)mi=∏i=0k(1+xpi)mi(1 + x)^m = \prod_{i=0}^{k} \left((1+x)^{p^i}\right)^{m_i} = \prod_{i=0}^{k} (1 + x^{p^i})^{m_i}.
  8. By the binomial theorem, (1+xpi)mi=∑j=0mi(mij)‾xjpi(1 + x^{p^i})^{m_i} = \sum_{j=0}^{m_i} \overline{\binom{m_i}{j}} x^{j p^i}.
  9. Multiplying out, (1+x)m(1 + x)^m is the sum, over all tuples (j0,…,jk)(j_0, \dots, j_k) with 0≤ji≤mi0 \le j_i \le m_i, of ∏i(miji)‾ x∑ijipi\overline{\prod_i \binom{m_i}{j_i}} \, x^{\sum_i j_i p^i}.
  10. Base-pp digits are unique. If ∑iaipi=∑ibipi\sum_i a_i p^i = \sum_i b_i p^i with digits in {0,…,p−1}\set{0, \dots, p-1}, the division algorithm by pp gives a0=b0a_0 = b_0. Subtracting, dividing by pp and repeating gives ai=bia_i = b_i for all ii.
  11. In step 9 each ji≤mi<pj_i \le m_i < p. So by step 10, ∑ijipi=n\sum_i j_i p^i = n holds exactly when ji=nij_i = n_i for every ii.
  12. If ni≤min_i \le m_i for all ii, exactly one tuple contributes to xnx^n, and the coefficient of xnx^n is the class of ∏i(mini)\prod_i \binom{m_i}{n_i}.
  13. If ni>min_i > m_i for some ii, no tuple contributes, and the coefficient of xnx^n is 00. In this case (mini)=0\binom{m_i}{n_i} = 0, so the coefficient is again the class of ∏i(mini)\prod_i \binom{m_i}{n_i}.
  14. Two equal polynomials have equal coefficients. Comparing steps 6, 12 and 13 gives (mn)≡∏i=0k(mini)(modp)\binom{m}{n} \equiv \prod_{i=0}^{k} \binom{m_i}{n_i} \pmod p, a congruence modulo p.

Idea

Modulo pp, raising to the power pp is additive, so (1+x)pi≡1+xpi(1+x)^{p^i} \equiv 1 + x^{p^i}. Writing mm in base pp factors (1+x)m(1+x)^m into pieces, one for each digit. Uniqueness of base-pp digits means that xnx^n arises from exactly one choice in each piece, namely the digit nin_i.

Reading path

To understand this page from the ground up, read these 50 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Euclid's lemma, Proof of strong induction from ordinary induction, Proof of Pascal's rule from the recursive definition, Proof that congruence is compatible with addition, Proof of the freshman's dream, Proof of the factorial formula for binomial coefficients by induction, Proof that congruence is compatible with multiplication, Proof of the binomial theorem by induction, Proof of the well-ordering principle from strong induction, Proof of the division algorithm.

  1. Binomial coefficient definition
  2. Definition by recursion concept
  3. Divisibility definition
  4. Factorial definition
  5. Group concept
  6. Mathematical induction concept
  7. Natural numbers object
  8. Peano axioms concept
  9. Proof of Pascal's rule from the recursive definition proof
  10. Congruence modulo n definition
  11. Greatest common divisor definition
  12. Prime number definition
  13. Ring definition
  14. Successor function definition
  15. Pascal's rule statement
  16. Residue class definition
  17. Proof that congruence is compatible with addition proof
  18. Proof that congruence is compatible with multiplication proof
  19. Coprime integers definition
  20. Addition of natural numbers definition
  21. Characteristic of a ring definition
  22. Commutative ring definition
  23. Polynomial ring definition
  24. The successor function is injective statement
  25. Zero is not a successor statement
  26. Proof of the factorial formula for binomial coefficients by induction proof
  27. Congruence is compatible with addition statement
  28. Congruence is compatible with multiplication statement
  29. Proof of the commutativity of addition by induction proof
  30. Order on the natural numbers definition
  31. Factorial formula for binomial coefficients statement
  32. Integers modulo n definition
  33. Commutativity of addition statement
  34. Proof of strong induction from ordinary induction proof
  35. Proof of the binomial theorem by induction proof
  36. Strong induction statement
  37. Binomial theorem statement
  38. Proof of the well-ordering principle from strong induction proof
  39. Well-ordering principle statement
  40. Proof of the division algorithm proof
  41. Division algorithm statement
  42. Proof of Bézout's identity proof
  43. Bézout's identity statement
  44. Proof of the generalized Euclid's lemma proof
  45. Generalized Euclid's lemma statement
  46. Proof of Euclid's lemma proof
  47. Euclid's lemma statement
  48. Proof of the freshman's dream proof
  49. Freshman's dream statement
  50. Proof of Lucas's theorem by generating functions proof

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Lucas%27s_theorem, Proof based on generating functions
About this page
TagYTQGZR0744
URIm2://YTQGZR0744
Kindproof
WritingW0 stub
MSC11B65
ProvesLucas's theorem
UsesPrime number, Congruence modulo n, Binomial coefficient, Binomial theorem, Freshman's dream, Polynomial ring, Integers modulo n, Characteristic of a ring, Division algorithm
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.