Documentation

Combinatorics.BinomialSum

The sum of the binomial coefficients up to k #

The standard estimate of a partial sum of a row of Pascal's triangle by the exponential: ∑ i ≤ k, C(n, i) ≤ (e n / k) ^ k for 0 < k ≤ n. It follows from C(n, i) ≤ n ^ i / i ! (Nat.choose_le_pow_div) and the partial sums of the exponential series (Real.sum_le_exp_of_nonneg), since n / k ≥ 1 lets every power n ^ i with i ≤ k be replaced by n ^ k / k ^ (k - i).

Main results #

theorem Nat.sum_range_succ_choose_le_exp_mul_div_pow {n k : ℕ} (hk : 0 < k) (hkn : k ≤ n) :
∑ i ∈ Finset.range (k + 1), ↑(n.choose i) ≤ (Real.exp 1 * ↑n / ↑k) ^ k

The sum of the binomial coefficients up to k is at most (e n / k) ^ k.