How to get a closed form for the following sum:
$$\sum_{k=0}^{n}\left(-1\right)^{k}F_{k}^{2}$$
Where $F_k$ is the $k$th Fibonacci number.
I tried to get a recurrence relation,but I failed and the closed form is given by $$\frac{\left(-1\right)^{n}F_{2n+1}-\left(2n+1\right)}{5}$$
Write $\varphi:=\tfrac{1+\sqrt{5}}{2}$ so $F_n=\tfrac{\varphi^n-(-\varphi^{-1})^n}{\sqrt{5}}$ in the convention $F_0=0,\,F_1=1$. Since $1+\varphi^2=\sqrt{5}\varphi$, the sum is$$\begin{align}\tfrac15\sum_{k=0}^n((-1)^k(\varphi^{2k}+\varphi^{-2k})-2)&=\frac{\tfrac{1-(-\varphi^2)^{n+1}}{1+\varphi^2}+\tfrac{1-(-\varphi^{-2})^{n+1}}{1+\varphi^{-2}}-2(n+1)}{5}\\&=\frac{-(-\varphi^2)^{n+1}-\varphi^2(-\varphi^{-2})^{n+1}-\sqrt{5}\varphi(2n+1)}{5\sqrt{5}\varphi}\\&=\frac{(-1)^n\varphi^{2n+1}+(-1)^n\varphi^{-2n-1}-\sqrt{5}(2n+1)}{5\sqrt{5}}\\&=\frac{(-1)^nF_{2n+1}-(2n+1)}{5}.\end{align}$$