Binomial coefficients prime to p and base-p digits #
Let p be a prime. Lucas' theorem (Choose.choose_modEq_choose_mod_mul_choose_div_nat)
computes n choose k modulo p digit by digit. This file draws two counting consequences.
- The number of
k ≤ nwithp ∤ n choose kis∏ⱼ (nⱼ + 1), where thenⱼare the base-pdigits ofn: suchkare exactly those whose every digit satisfieskⱼ ≤ nⱼ. - Every
n choose kwithk ≤ nis prime topexactly whenn + 1 = (a + 1) pᵐfor somea < pand somem, that is, when every base-pdigit ofnexcept the leading one isp - 1.
Both are proved by peeling off the last digit, writing n = r + p q with r < p, from the
one-digit divisibility criterion Nat.dvd_choose_add_mul_iff.
These are the numerical inputs to the representation theory of SL₂ in characteristic p: the
simple module of highest weight n has dimension ∏ⱼ (nⱼ + 1), and the binary forms of degree
n are simple exactly when n + 1 = (a + 1) pᵐ.
Main results #
Nat.dvd_choose_add_mul_iff: forr, a < p,p ∣ (r + p q) choose (a + p b)exactly whenr < aorp ∣ q choose b.Nat.card_filter_not_dvd_choose: the number ofk ≤ nwithp ∤ n choose kis the product of the base-pdigits ofn, each increased by one.Nat.forall_not_dvd_choose_iff: everyn choose kwithk ≤ nis prime topexactly whenn + 1 = (a + 1) pᵐwitha < p.
References #
- N. J. Fine, Binomial coefficients modulo a prime, Amer. Math. Monthly 54 (1947), 589–592.
- J. C. Jantzen, Representations of Algebraic Groups, 2nd ed., Part II, Chapter 3.
The count of binomial coefficients prime to p is multiplicative in the digits. For a last
digit r < p, the number of k ≤ r + p q with p ∤ (r + p q) choose k is r + 1 times the number
of k ≤ q with p ∤ q choose k.
Fine's theorem. The number of k ≤ n for which p ∤ n choose k is ∏ⱼ (nⱼ + 1), the
product over the base-p digits nⱼ of n.
All binomial coefficients n choose k are prime to p exactly when
n + 1 = (a + 1) pᵐ for some a < p and some m, that is, when every base-p digit of n
except the leading one is p - 1.