Documentation

Formalizations.Combinatorics.Choose.MiddleBinomialDivisors

Divisors of the middle binomial coefficient (Pomerance) #

C. Pomerance, Divisors of the middle binomial coefficient, Amer. Math. Monthly 122 (2015) 636–644, studies when n + k divides C(2n, n); for k = 1 it always does (Catalan numbers). Everything here comes from Kummer's theorem (padicValNat_choose: the p-adic valuation of a binomial coefficient counts the carries of the addition in base p).

Main results #

References #

theorem MiddleBinomial.infinite_not_dvd_centralBinom (k : ℤ) (hk : k ≠ 1) :
{n : ℕ | 0 < ↑n + k ∧ ¬↑n + k ∣ ↑n.centralBinom}.Infinite

Pomerance, Theorem 1. For every integer k ≠ 1 there are infinitely many n with n + k > 0 and n + k ∤ C(2n, n).

theorem MiddleBinomial.padicValNat_add_le {p k : ℕ} [Fact (Nat.Prime p)] (hk : 1 ≤ k) (hp : 2 * k ≤ p) (n : ℕ) :

Pomerance, inequality (4). For a prime p ≥ 2k with k ≥ 1, the power of p in n + k divides C(2n, n).

theorem MiddleBinomial.mul_dvd_centralBinom {p q k : ℕ} (hp : Nat.Prime p) (hq : Nat.Prime q) (hkp : k < p) (h₁ : 3 * p < 2 * q) (h₂ : q < 2 * p) :
p * q ∣ (p * q + k).centralBinom

The construction behind Pomerance, Theorem 3 (first half): for primes p < q with k < p and 3p/2 < q < 2p, the product pq divides C(2n, n) for n = pq + k.

theorem MiddleBinomial.sub_dvd_centralBinom_of_primes {p q k : ℕ} (hp : Nat.Prime p) (hq : Nat.Prime q) (hkp : k < p) (h₁ : 3 * p < 2 * q) (h₂ : q < 2 * p) :
p * q + k - k ∣ (p * q + k).centralBinom

The same in the paper's form: n - k ∣ C(2n, n) for n = pq + k.