Below is the solution with the hint
Find a compact form of the sum: $\sum_{k=0}^{n}{n \choose k}^2(-1)^k$
Hint: $ (1-x^2)^n = (1-x)^n \cdot (1+x)^n $
$ \sum_{k=0}^{n}{n \choose k}(-1)^k x^{2k} $ $ = \sum_{k=0}^{n}{n \choose k}(-1)^k x^k $ $ = ( {n \choose 0}x^0 - {n \choose 1}x^1 + {n \choose 2}x^2 ... + (-1)^n {n \choose n}x^n $
$ (-x^2 + 1)^n = \sum_{k=0}^{n}{n \choose k}(-x^2)^k 1^{n-k} $ $ = \sum_{k=0}^{n}(-1)^k x^{2k}$
$ {n \choose 0}{n \choose n} - {n \choose 1} {n \choose n-1} + {n \choose 2}{n \choose n-2} - ... + (-1)^n \cdot {n \choose n}{n \choose 0} = \sum_{k=0}^{n}{n \choose k}{n \choose n-k}(-1)^k = \sum_{k=0}^{n}{n\choose k}^2 (-1)^k$
$ 2\not{|} n \Rightarrow 0$
$ 2 | n \Rightarrow {n \choose \frac{n}{2}}$
So i really don't understant why we can use $x^{2k}$ instead of $ {n \choose k} $ in the first equation.
I also don't understand where the result with $n|2$ came from ( With $n \not{|}2$ result is obvious even without solving).
I also found a very similar equation (maybe a bit more difficult) which I can't figure out either similar equation
I hope someone can help me understand this solution :)