I'm a little bit confused. This is a very easy question but I'm solving lots of exercises and I want to be crystal clear about that.
I want to verify how this sum works.
$$\sum_{k=0}^n (-1)^k\binom{n}{k}$$
Let's take $n=2$. So we will have $$(-1)^0\binom{2}{0}+(-1)^1\binom{2}{1}+(-1)^2\binom{2}{2}=2-2=0$$ Is that true ?
Thank you
Hints:
Find the expansion of $\left(1-x\right)^n$ and substitute $x=1$
Spoiler: