Partition
Another situation where the binomial coefficient shows up naturally is the following setting. We have non-negative integer variables . How many possible solutions satisfy
The answer is . To see this, imagine the situation where Ariel is distributing identical chocolates to students in this class. He arranges chocolates on the line and his goal is to use "sticks" to split them into parts, each being given to a student (the first part to the first student and so on). We can, equivalently, imagine having objects and then choosing of these objects to be sticks (the rest would be chocolates). This immediately gives the number . 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.)
Define a bijection between solutions to the equation and the possible occurrences of sticks.
A simple property of binomial coefficient is the following:
This can be easily verified. The left-hand-side is the number of subsets of size (choosing out of elements to be in the set). Another way to choose a subset of size is to choose elements and throw them away (the remaining elements is our set) 😊
Let . Then
We use a combinatorial interpretation of the term as the number of subsets of size . Let be the set containing all subsets of of size . We partition into where the first set contains all -subsets that do not involve , and are all the -subsets that involve . Notice that (the number of -subsets of ). Moreover, has a bijection with (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.
On the right-hand-side, the number is exactly the number of -subsets of . Denote . Now we imagine partitioning into and containing even and odd numbers respectively. So we have . We partition into where (these are the subsets that contain exactly even numbers and odd numbers). Therefore, we have that and
Notice that (choose even numbers and odd numbers). The identity implies the desired result.
Consider the formula:
- Prove this formula by induction on (for any fixed ).
- Prove this formula by assigning each term a natural combinatorial interpretation and argue that they are equal.
Consider an -by- grid graph where two opposing vertices are denoted by coordinates and . In all the questions below, justify your answers by a formal proof.
- Count the number of shortest paths from to .
- Count the number of shortest paths from to .
- (difficult) Let denote the number of paths from to that do not cross the line . Prove: .