The power of two dividing a central binomial coefficient #
The exponent of two in C(2n, n) equals the sum of the binary digits of n
(Nat.factorization_centralBinom_two). This is the central-binomial case of Kummer's theorem.
The proof uses Mathlib's Legendre formula for n! and the identity
C(2n, n) · n! · n! = (2n)!.
Main results #
Nat.factorization_centralBinom_two: the exponent of two inC(2n, n)is the binary digit sum ofn.
The exponent of two in the central binomial coefficient C(2n, n) is the sum of the binary
digits of n. This is the p = 2, k = n case of Mathlib's Kummer theorem
sub_one_mul_multiplicity_choose_eq_sub_sum_digits', simplified using that 2 * n and n have
the same binary digit sum.