Is it possible to calculate $\sum_{k=0}^{20}(-1)^k\binom{k+2}2$ without calculating each term separately?
The original question was find the number of solutions to $2x+y+z=20$ which I calculated to be the coefficient of $x^{20}$ in $(1+x^2+x^4\dots)(1+x+x^2\dots)^2$ which simplified to the term above.
I know $\sum_{k=0}^{20}\binom{k+2}{2}=\binom{23}3$ but the $(-1)^k$ is ruining things.
Given that $(-1)^k=1$ for even $k$, and $-1$ for odd $k$, I'd suggest splitting your sum into $$\sum_{n=0}^{10}{\binom{2n+2}{2}}-\sum_{n=1}^{10}{\binom{2n+1}{2}}$$ with the former representing even $k$ and the latter for odd $k$.