Sums of binomial coefficients #
This file includes variants of the binomial theorem and other results on sums of binomial coefficients. Theorems whose proofs depend on such sums may also go in this file for import reasons.
A version of Commute.add_pow
that avoids ℕ-subtraction by summing over the antidiagonal and
also with the binomial coefficient applied via scalar action of ℕ.
The sum of entries in a row of Pascal's triangle
Zhu Shijie's identity aka hockey-stick identity, version with Icc
.
Zhu Shijie's identity aka hockey-stick identity, version with range
.
Summing (i + k).choose k
for i ∈ [0, n]
gives (n + k + 1).choose (k + 1)
.
Combinatorial interpretation: (i + k).choose k
is the number of decompositions of [0, i)
in
k + 1
(possibly empty) intervals (this follows from a stars and bars description). In particular,
(n + k + 1).choose (k + 1)
corresponds to decomposing [0, n)
into k + 2
intervals.
By putting away the last interval (of some length n - i
),
we have to decompose the remaining interval [0, i)
into k + 1
intervals, hence the sum.
The sum of (n+1).choose i * f i (n+1-i)
can be split into two sums at rank n
,
respectively of n.choose i * f i (n+1-i)
and n.choose i * f (i+1) (n-i)
.
The sum along the antidiagonal of (n+1).choose i * f i j
can be split into two sums along the
antidiagonal at rank n
, respectively of n.choose i * f i (j+1)
and n.choose j * f (i+1) j
.