In number theory, Lucas's theorem expresses the remainder of division of the binomial coefficient (mn) by a prime number p in terms of the base p expansions of the integers m and n. Lucas's theorem first appeared in 1878 in papers by Édouard Lucas.
Statement For non-negative integers m and n and a prime p, the following congruence relation holds:
(mn)≡∏i=0k(mini)(modp), where
m=mkpk+mk−1pk−1+⋯+m1p+m0, and
n=nkpk+nk−1pk−1+⋯+n1p+n0 are the base p expansions of m and n respectively. This uses the convention that (mn)=0 if m < n.
Proofs There are several ways to prove Lucas's theorem.
Consequences One consequence of Lucas's theorem is that the binomial coefficient (mn) 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, (mn) 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 (mn) is divided by a prime power pk. However, the formulas become more complicated. If the modulus is the square of a prime p, the following congruence relation holds for all 0 ≤ s ≤ r ≤ p − 1, a ≥ 0, and b ≥ 0:
(pa+rpb+s)≡(ab)(rs)(1+pa(Hr−Hr−s)+pb(Hr−s−Hs))(modp2), where Hn=1+12+13+⋯+1n is the nth harmonic number. Generalizations of Lucas's theorem for higher prime powers pk are also given by Davis and Webb (1990) and Granville (1997). Kummer's theorem asserts that the largest integer k such that pk divides the binomial coefficient (mn) (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 [ka+bkr+s]q≡(ar)[bs]qmodΦk, where [ka+bkr+s]q and [bs]q are q-binomial coefficients, (ar) is a usual binomial coefficient, and Φk is the kth cyclotomic polynomial (in the variable q).
References
External links Lucas's Theorem at PlanetMath. A. Laugier; M. P. Saikia (2012). "A new proof of Lucas' Theorem" (PDF). Notes on Number Theory and Discrete Mathematics. 18 (4): 1–6. arXiv:1301.4250. R. Meštrović (2014). "Lucas' theorem: its generalizations, extensions and applications (1878–2014)". arXiv:1409.3820 [math.NT]. Weisstein, Eric W. "Lucas's theorem". MathWorld.
