# Pascal’s rule (bit string proof)

This proof is based on an alternate, but equivalent, definition of the binomial coefficient: $\binom{n}{r}$ is the number of bit strings (finite sequences of $0$s and $1$s) of length $n$ with exactly $r$ ones.

We want to show that

 $\binom{n}{r}=\binom{n-1}{r-1}+\binom{n-1}{r}$

To do so, we will show that both sides of the equation are counting the same set of bit strings.

The left-hand side counts the set of strings of $n$ bits with $r$ $1$s. Suppose we take one of these strings and remove the first bit $b$. There are two cases: either $b=1$, or $b=0$.

If $b=1$, then the new string is $n-1$ bits with $r-1$ ones; there are $\binom{n-1}{r-1}$ bit strings of this nature.

If $b=0$, then the new string is $n-1$ bits with $r$ ones, and there are $\binom{n-1}{r}$ strings of this nature.

Therefore every string counted on the left is covered by one, but not both, of these two cases. If we add the two cases, we find that

 $\binom{n}{r}=\binom{n-1}{r-1}+\binom{n-1}{r}$
Title Pascal’s rule (bit string proof) PascalsRulebitStringProof 2013-03-22 12:23:03 2013-03-22 12:23:03 vampyr (22) vampyr (22) 5 vampyr (22) Proof msc 05A10