In number theory, Lucas's theorem expresses the remainder of division of the binomial coefficient
Contents
- Formulation
- Consequence
- Proofs
- Combinatorial argument
- Proof based on generating functions
- Variations and generalizations
- References
Lucas's theorem first appeared in 1878 in papers by Édouard Lucas.
Formulation
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
Consequence
Proofs
There are several ways to prove Lucas's theorem. We first give a combinatorial argument and then a proof based on generating functions.
Combinatorial argument
Let M be a set with m elements, and divide it into mi cycles of length pi for the various values of i. Then each of these cycles can be rotated separately, so that a group G which is the Cartesian product of cyclic groups Cpi acts on M. It thus also acts on subsets N of size n. Since the number of elements in G is a power of p, the same is true of any of its orbits. Thus in order to compute
Proof based on generating functions
This proof is due to Nathan Fine.
If p is a prime and n is an integer with 1 ≤ n ≤ p − 1, then the numerator of the binomial coefficient
is divisible by p but the denominator is not. Hence p divides
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
where in the final product, ni is the ith digit in the base p representation of n. This proves Lucas's theorem.