I am working my way through N.J.A. Sloane "An Introduction to Association Schemes and Coding Theory" and have got stuck proving the last of his identities for the Kravchuck (Krawtchouk) polynomials. The Kravchuk polynomial is defined as $$ K_k(i;n) = \sum_{j=0}^k (-1)^j \binom{i}{j} \binom{n-i}{k-j} $$
I know (have proved) the following equivalent formulations $$ K_k(i;n) = \sum_{j=0}^k (-2)^j \binom{i}{j} \binom{n-j}{k-j} \\ = \sum_{j=0}^k (-1)^j 2^{k-j} \binom{n-k+j}{j} \binom{n-i}{k-j}\\ $$
I know that if $u \in \mathbb{F}_2^n$ has weight, $wt(u)=i$ then $$ K_{k}(i;n) = \sum_{v \in \mathbb{F}_2^n \\ wt(v) = k} (-1)^{u \cdot v} $$
I know that $K_k(i;n)$ is the coefficient of $z^k$ in $(1+z)^{n-i}(1-z)^{i}$. I know the orthogonality conditions: $$ \sum_{i=0}^{n} \binom{n}{i} K_k(i;n) K_l(i;n) = 2^n\binom{n}{k} \delta_{k,l} $$
I have also proved the following properties $$ \binom{n}{i} K_k(i;n) = \binom{n}{k} K_{i}(k;n) \\ (k+1)K_{k+1}(i;n) = (n-2i)K_k(i;n) - (n-k+1)K_{k-1}(i;n) \\ \sum_{j=0}^k K_j(i;n) = K_k(i-1;n-1) $$
But I am really stuck on proving this one $$ \sum_{\ell =0}^n \binom{n-\ell}{n-j} K_{\ell}(i;n) = 2^j \binom{n-i}{j} $$
Here is another proof I worked out for the case that $0 \leq i \leq n$ is an integer. It uses the binomial expansion $$ (a+b)^n = \sum_{k=0}^n \binom{n}{k} a^k b^{n-k} $$ in two places and the fact that when $i$ is an integer in the given range $$ \sum_{k=0}^{n} K_k(i;n) y^k = (1+y)^{n-i}(1-y)^{i}. $$
We want to show that $$ -2^j\binom{n-i}{j} + \sum_{\ell=0}^{n} \binom{n-\ell}{n-j} K_{\ell}(i;n) = 0 $$ for all $0 \leq j \leq n$. We form the generating function whose coefficient of $z^j$ is the left hand side of the desired identity: $$ F(z) = \sum_{j=0}^{n} \left(-2^j\binom{n-i}{j} + \sum_{\ell=0}^{n} \binom{n-\ell}{n-j} K_{\ell}(i;n)\right) z^j \\ = \sum_{j=0}^n -(2z)^j \binom{n-i}{j} + \sum_{j=0}^n \sum_{\ell=0}^{n} \binom{n-\ell}{n-j}K_{\ell}(i;n) z^j \\ = -(1+2z)^{n-i} + \sum_{j=0}^n \sum_{\ell=0}^{n} \binom{n-\ell}{n-j}K_{\ell}(i;n) z^j \\ = -(1+2z)^{n-i} + \sum_{\ell=0}^{n} \sum_{j=0}^n \binom{n-\ell}{n-j}K_{\ell}(i;n) z^j \\ = -(1+2z)^{n-i} + \sum_{\ell=0}^{n} K_{\ell}(i;n) \sum_{j=0}^n \binom{n-\ell}{n-j} z^j \\ = -(1+2z)^{n-i} + \sum_{\ell=0}^{n} K_{\ell}(i;n) z^{\ell} \sum_{j=0}^n \binom{n-\ell}{n-j} z^{j-\ell} \\ = -(1+2z)^{n-i} + \sum_{\ell=0}^{n} K_{\ell}(i;n) z^{\ell} (1+z)^{n-\ell} \\ = -(1+2z)^{n-i} + (1+z)^n \sum_{\ell=0}^{n} K_{\ell}(i;n)\left( \frac{z}{1+z}\right)^{\ell}. $$ Letting $y = z/(1+z)$, we get $$ F(z) = -(1+2z)^{n-i} + (1+z)^n \left(1+z/(1+z) \right)^{n-i} \left(1-z/(1+z) \right)^{i} \\ = -(1+2z)^{n-i} + (1+z)^n (1+2z)^{n-i} (1+z)^{i-n} (1+z)^{-i} \\ = -(1+2z)^{n-i} + (1+2z)^{n-i} \\ = 0. \\ $$ Since $F(z) = 0$ the coefficient of $z^j$ in $F(z)$ is $0$ for all $0 \leq j \leq n$. Going back to the definition of $F(z)$ and extracting the coefficient of $z^j$ gives $$ -2^j\binom{n-i}{j} + \sum_{\ell=0}^{n} \binom{n-\ell}{n-j} K_{\ell}(i;n) = 0. $$ as desired.