I would like to have an explanation of the following solution to the following problem (instead of another solution), and a similar problem has been asked by me before.
Let $a_1$, $a_2$, $a_3$, $a_4$, $a_5$ be real numbers such that $$a_1a_2+a_2a_3+a_3a_4+a_4a_5+a_5a_1=20,\\a_1a_3+a_2a_4+a_3a_5+a_4a_1+a_5a_2=24.$$ Prove that $a_1^2+a_2^2+a_3^2+a_4^2+a_5^2\ge22+2\sqrt5$.
The solution defined $z_i=\frac1{\sqrt5}\sum\limits_{k=1}^5a_k\omega^{-ki}$, but it did not state what $\omega$ was, perhaps $\mathrm e^{\frac{2\pi}3\mathrm i}$.
Then it claimed that \begin{align} \sum\limits_{i=1}^5a_i^2&=\sum\limits_{i=1}^5|z_i|^2,\\\sum\limits_{i=1}^5a_ia_{i+1}&=\sum\limits_{i=1}^5\cos\frac{2k\pi}5|z_i|^2,\tag1\\\sum\limits_{i=1}^5a_ia_{i+2}&=\sum\limits_{i=1}^5\cos\frac{4k\pi}5|z_i|^2.\tag2 \end{align} I don't understand why any of the equations hold.
Then it finished the proof by considering $2\cos\frac{2\pi}5(1)-2\cos\frac\pi5(2)+\sum\limits_{i=1}^5|z_i|^2$.
Can anyone explain how this solution works?