Let $n$ be even and $x_1,x_2,⋯,x_n$ be reals. Show that$$\sum_{1\le i<j\le n}\min(|i-j|,n-|i-j|)x_ix_j\\=\sum_{j=1}^{\frac n2}(x_j+x_{j+1}+⋯+x_{j+\frac n2-1})(x_{j+\frac n2}+x_{j+\frac n2+1}+⋯+x_{j+n-1}),$$where $x_{n+k}=x_k$ for $k=1,2,\cdots,n-1$.
This identity looks interesting, which comes from one of my students. I think is right, but I am unable to prove it.
When $n=2$, $$\text{LHS}=\sum_{1\le i<j\le 2}\min(|2-1|,2-|2-1|)x_{i}x_{j}=x_{1}x_{2},\\\text{RHS}=x_{1}x_{2}.$$ When $n=4$, $$\text{LHS}=x_{1}x_{2}+2x_{1}x_{3}+x_{1}x_{4}+x_{2}x_{3}+2x_{2}x_{4}+x_{3}x_{4},\\\text{RHS}=\sum_{j=1}^{2}(x_{j}+x_{j+1})(x_{j+2}+x_{j+3})=(x_{1}+x_{2})(x_{3}+x_{4})+(x_{2}+x_{3})(x_{4}+x_{1})=\text{LHS}.$$
Let's compare the coefficient of $x_ix_j$ on both sides. On the LHS it's the distance between i and j in $Z/(nZ)$ On the RHS it's the number of ways of dividing $Z/nZ$ into two disjoint intervals of equal length such that one contains i and the other j. These are clearly the same number.