Let $x_i$ be real numbers with $\sum\limits_{i=1}^{n} x_i^2=1$. Prove that $$\frac{1}{2}x_1^2+\frac{1}{6}(x_1+x_2)^2+\cdots +\frac{1}{n(n-1)}(x_1+\cdots +x_{n-1})^2+\frac{1}{n}(x_1+\cdots +x_n)^2\le 3+2\sqrt 2$$
I have tried Abel transformation, induction and other methods with no progress. I also suspect that the left side of this inequality has connection with matrix $a_{ij}=\min (\frac{1}{i}, \frac{1}{j})$, but don't know how to proceed. Thanks for any help.