We have a sequence $a_0,a_1,a_2,...,a_9$ so that each member is $1$ or $-1$. Is it possible: $$a_0a_1+a_1a_2+...+a_8a_9+a_9a_0=0$$
This problem was given on contest, but I don't know how to solve it.
Clearly we must have $5$ terms $a_ia_{i+1}$ equal $-1 $ and other $5$ equal $1$. I have created a graph in which $a_i$ is connected with $a_{i+1}$ (modulo 10) if their product is -1. So we have $5$ edges and we can write handshake lemma $$\sum_{i=0}^9 d_i=10$$ where $d_i \in \{0,1,2\}$, but all this is usless.
I tried to find a configuration but failed every time. Any idea? For sure there must be simple argumentation why this does not hold or simple configuration why it does. Just don't see.
No assignment of the $a_i$ will satisfy the given constraint, and the "simple argumentation" is as follows. $$\begin{matrix} a_0&a_1&a_2&a_3\\ a_9&&&a_4\\ a_8&a_7&a_6&a_5 \end{matrix}$$ The ten terms of the sum are products of consecutive values in the above loop. The $a_i$ form alternating runs of $+1$ and $-1$, and since this is a loop, there must be an even number of runs, thus an even number of boundaries between runs, hence an even number of $-1$ terms in the sum.
But we require exactly five $-1$ terms in the sum for it to be zero. Thus, no assignment of the $a_i$ can satisfy the sum.