I need to show that the following identity holds:
$\sum_{i=0}^k (-1)^{k-i} {{d-i}\choose{k-i}} {{n}\choose{i}} = {{n-d+k-1}\choose{k}} $
Where $k \leq \frac{d}{2}$ and $n \geq d$.
I have been trying several substitutions but I haven't been able to prove it. Any help would be appreciated.
We have $$ (-1)^{k-i} \binom{d-i}{k-i} = \binom{k - d - 1}{k-i} \tag{$\spadesuit$} $$ because for $0 \leq i < k$, \begin{align} (-1)^{k-i}\binom{d-i}{k-i} &= (-1)^{k-i}\frac{(d-i)(d-i-1)\cdots(d-k+1)}{(k-i)!} \\ &= \frac{(k - d - 1)(k - d - 2)\cdots (i-d)}{(k-i)!}\\ &= \binom{k-d-1}{k-i} \end{align} and for $i = k$, both LHS and RHS of $(\spadesuit)$ are $1$.
Therefore, we have \begin{align} \sum_{i=0}^k (-1)^{k-i}\binom{d-i}{k-i}\binom{n}{i} &= \sum_{i=0}^k\binom{k-d-1}{k-i}\binom{n}{i} \tag{$\clubsuit$} \end{align} By applying the famous identity $\sum_k \binom{r}{m+k}\binom{s}{n-k} = \binom{r+s}{m+n}$, $(\clubsuit)$ can be rewritten as $$ \binom{n + k - d - 1}{k} $$