I tried to solve a question in combinatorics and ended up with this sum:
$\sum_{t=0}^{r}\binom{ m-t}{r-t}$
when I give it to WolframAlpha it says it equals to $\binom{ m + 1}{r}$ but gives no proof, can someone provide a discrete proof?
I tried to solve a question in combinatorics and ended up with this sum:
$\sum_{t=0}^{r}\binom{ m-t}{r-t}$
when I give it to WolframAlpha it says it equals to $\binom{ m + 1}{r}$ but gives no proof, can someone provide a discrete proof?
Hint:
How many $r$-element subsets are there of $\{0,1,2,\dots,m\}$?
How many of them don't contain $0$?
How many contain $0$ but not $1$?
How many contain $0$ and $1$ but not $2$?
...
How many contain the first $t$ many numbers but not the $t+1$'st?
$\sum_{t=0}^r \binom{m-t}{r-t} = \sum_{t=0}^r \binom{m-t}{m - r} = \sum_{t=m-r}^m \binom{t}{m - r} = \binom{m + 1}{m-r + 1} = \binom{m + 1}{r}$
the third $= $ is the Hockey-stick identity https://en.wikipedia.org/wiki/Hockey-stick_identity