Skip to content

Partition ​

Another situation where the binomial coefficient shows up naturally is the following setting. We have nn non-negative integer variables x1,…,xnx_1,\ldots, x_n. How many possible solutions satisfy

x1+x2+…+xn=mx_1 + x_2 + \ldots + x_n = m

The answer is (m+n−1n−1){m+n-1 \choose n-1}. To see this, imagine the situation where Ariel is distributing mm identical chocolates to nn students in this class. He arranges chocolates on the line and his goal is to use n−1n-1 "sticks" to split them into nn parts, each being given to a student (the first part to the first student and so on). We can, equivalently, imagine having m+n−1m+n-1 objects and then choosing n−1n-1 of these objects to be sticks (the rest would be chocolates). This immediately gives the number (m+n−1n−1){m+n -1 \choose n-1}. This informal counting can be turned into a formal counting by defining a bijection. (Since we already did many formal proofs, this is left as an exercise.)

Exercise 68

Define a bijection between solutions to the equation and the possible occurrences of sticks.

A simple property of binomial coefficient is the following:

(nk)=(nn−k){n \choose k} = {n \choose n-k}

This can be easily verified. The left-hand-side is the number of subsets of size kk (choosing kk out of nn elements to be in the set). Another way to choose a subset of size kk is to choose n−kn-k elements and throw them away (the remaining elements is our set) 😊

Example 25 (Pascal)

Let k<nk < n. Then

(nk)=(n−1k)+(n−1k−1){n \choose k} = {n -1 \choose k} + {n-1 \choose k-1}

Proof:

We use a combinatorial interpretation of the term (nk){n \choose k} as the number of subsets of size kk. Let S\mathcal{S} be the set containing all subsets of [n][n] of size kk. We partition S\mathcal{S} into S′∪S′′\mathcal{S}' \cup \mathcal{S}'' where the first set contains all kk-subsets that do not involve nn, and S′′\mathcal{S}'' are all the kk-subsets that involve nn. Notice that ∣S′∣=(n−1k)|\mathcal{S}'| = {n-1 \choose k} (the number of kk-subsets of [n−1][n-1]). Moreover, S′′\mathcal{S}'' has a bijection with ([n−1]k−1){[n-1] \choose k-1} (try to formally prove this). This concludes the proof.

Notice that one can also give a purely algebraic proof for the above theorem using the definition of the binomial coefficients. But the proof would be somewhat tasteless and less fun 😊

Let us look at another example where the equation looks much more complicated.

Example 26 (Vandermonde's Identity)

∑i=0n(ni)2=(2nn)\sum_{i=0}^n {n \choose i}^2 = {2n \choose n}

Proof:

On the right-hand-side, the number is exactly the number of nn-subsets of [2n][2n]. Denote F={S⊆[2n]:∣S∣=n}\mathcal{F}= \{S \subseteq [2n]: |S| =n \}. Now we imagine partitioning [2n][2n] into EE and OO containing even and odd numbers respectively. So we have ∣E∣=∣O∣=n|E| = |O| = n. We partition F\mathcal{F} into F0,F1,…,Fn\mathcal{F}_0, \mathcal{F}_1,\ldots, \mathcal{F}_n where Fi={S∈F:∣S∩E∣=i}\mathcal{F}_i = \{S \in \mathcal{F}: |S \cap E| = i\} (these are the subsets SS that contain exactly ii even numbers and n−in-i odd numbers). Therefore, we have that F=⋃iFi\mathcal{F} = \bigcup_i \mathcal{F}_i and

(2nn)=∣F∣=∑i∣Fi∣{2n \choose n} = |\mathcal{F}| = \sum_i |\mathcal{F}_i|

Notice that ∣Fi∣=(ni)⋅(nn−i)|\mathcal{F}_i| = {n \choose i} \cdot {n \choose n-i} (choose ii even numbers and n−in-i odd numbers). The identity (ni)=(nn−i){n \choose i} = {n \choose n-i} implies the desired result.

Exercise 69

Consider the formula:

(rr)+(r+1r)+⋯+(nr)=(n+1r+1){r \choose r} + {r+1 \choose r} + \cdots + {n \choose r} = {n+1 \choose r+1}

  • Prove this formula by induction on nn (for any fixed rr).
  • Prove this formula by assigning each term a natural combinatorial interpretation and argue that they are equal.

Exercise 70

Consider an nn-by-nn grid graph where two opposing vertices are denoted by coordinates (0,0)(0,0) and (n,n)(n,n). In all the questions below, justify your answers by a formal proof.

  • Count the number of shortest paths from (0,0)(0,0) to (n,n)(n,n).
  • Count the number of shortest paths from (0,0)(0,0) to (n−1,n−2)(n-1,n-2).
  • (difficult) Let FkF_k denote the number of paths from (0,0)(0,0) to (k,k)(k,k) that do not cross the line x=yx =y. Prove: Fn=∑k=0n−1Fk⋅Fn−k−1F_n = \sum_{k=0}^{n-1} F_k \cdot F_{n-k-1}.

Toolbox by Hilmy Abiyyu Asad from the Noun Project. © 2026 Me. Built with VitePress.