Lucas's theorem

Last updated

In number theory, Lucas's theorem expresses the remainder of division of the binomial coefficient by a prime number p in terms of the base p expansions of the integers m and n.

Contents

Lucas's theorem first appeared in 1878 in papers by Édouard Lucas. [1]

Statement

For non-negative integers m and n and a prime p, the following congruence relation holds:

where

and

are the base p expansions of m and n respectively. This uses the convention that if m < n.

Proofs

There are several ways to prove Lucas's theorem.

Combinatorial proof using a group action

Let M be a set with m elements, and arbitrarily divide it into mi cycles of length pi for the various values of i. Then each of these cycles can be rotated separately by a cyclic group Cpi, so that the group G which is the Cartesian product of all these cyclic groups (one for each cycle) acts on M. It thus also acts on the set of n-element subsets N of M, the number of which is . This is the group action we consider in the sequel.

Since the number of elements in G is a power of p, the same is true of any of its orbits, by the orbit-stabilizer theorem. Hence, is congruent modulo p to the number of sets N whose orbit is of size 1, i.e., to the number of fixed points of the group action.

Since all cycles can be independently rotated by our group G, the fixed points of the action are those subsets N that are a union of some of the cycles. This means that N must consist of exactly ni cycles of size pi for each i, for the same reason that the integer n has a unique representation in base p. Thus the number of choices for N is exactly .

Proof based on generating functions

This proof is due to Nathan Fine. [2]

If p is a prime and n is an integer with 1 ≤ np − 1, then the numerator of the binomial coefficient

is divisible by p but the denominator is not. Hence p divides . Because of the binomial theorem, this means that

Continuing by induction, we have for every nonnegative integer i that

Now let m be a nonnegative integer, and let p be a prime. Write m in base p, so that for some nonnegative integer k and integers mi with 0 ≤ mip − 1. Then

In the last equality we use distributivity and the fact that the representation of n in base p is unique, where ni is the i-th digit in the base p representation of n. Comparing the coefficients of Xn in the very first and last sum, we obtain Lucas's theorem.

Pascal's triangle, showing the odd binomial coefficients in black. Sierpinski Pascal triangle.svg
Pascal's triangle, showing the odd binomial coefficients in black.

Consequences

One consequence of Lucas's theorem is that the binomial coefficient is divisible by the prime p if and only if at least one of the digits of the base-p representation of n is greater than the corresponding digit of m. In particular, is odd if and only if the positions of the ones in the binary expansion of n are a subset of the positions of the ones in that of m. This leads to a peculiar distribution of odd numbers in Pascal's triangle, resembling Sierpiński 's triangle, shown to the right.

Non-prime moduli

Lucas's theorem can be generalized to give an expression for the remainder when is divided by a prime power pk. However, the formulas become more complicated.

If the modulo is the square of a prime p, the following congruence relation holds for all 0 ≤ srp − 1, a ≥ 0, and b ≥ 0:

where is the nth harmonic number. [3] Generalizations of Lucas's theorem for higher prime powers pk are also given by Davis and Webb (1990) [4] and Granville (1997). [5]

Kummer's theorem asserts that the largest integer k such that pk divides the binomial coefficient (or in other words, the valuation of the binomial coefficient with respect to the prime p) is equal to the number of carries that occur when n and m  n are added in the base p.

q-binomial coefficients

There is a generalization of Lucas's theorem for the q-binomial coefficients. It asserts that if a, b, r, s, k are integers, where 0 ≤ b, s < k, then where and are q-binomial coefficients, is a usual binomial coefficient, and is the kth cyclotomic polynomial (in the variable q). [6]

References

    • Edouard Lucas (1878). "Théorie des Fonctions Numériques Simplement Périodiques". American Journal of Mathematics . 1 (2): 184–196. doi:10.2307/2369308. JSTOR   2369308. MR   1505161. (part 1);
    • Edouard Lucas (1878). "Théorie des Fonctions Numériques Simplement Périodiques". American Journal of Mathematics . 1 (3): 197–240. doi:10.2307/2369311. JSTOR   2369311. MR   1505164. (part 2);
    • Edouard Lucas (1878). "Théorie des Fonctions Numériques Simplement Périodiques". American Journal of Mathematics . 1 (4): 289–321. doi:10.2307/2369373. JSTOR   2369373. MR   1505176. (part 3)
  1. Fine, Nathan (1947). "Binomial coefficients modulo a prime". American Mathematical Monthly. 54 (10): 589–592. doi:10.2307/2304500. JSTOR   2304500.
  2. Rowland, Eric (2022). "Lucas' theorem modulo p2". American Mathematical Monthly. 129 (9): 846–855. arXiv: 2006.11701v3 . doi:10.1080/00029890.2022.2038004.
  3. Kenneth S. Davis, William A. Webb (1990). "Lucas' Theorem for Prime Powers". European Journal of Combinatorics. 11 (3): 229–233. doi:10.1016/S0195-6698(13)80122-9.
  4. Andrew Granville (1997). "Arithmetic Properties of Binomial Coefficients I: Binomial coefficients modulo prime powers" (PDF). Canadian Mathematical Society Conference Proceedings. 20: 253–275. MR   1483922. Archived from the original (PDF) on 2017-02-02.
  5. Désarménien, Jacques (March 1982). "Un Analogue des Congruences de Kummer pour les q-nombres d'Euler". European Journal of Combinatorics. 3 (1): 19–28. doi:10.1016/S0195-6698(82)80005-X.