The needed constant C=21. First show that C=21 holds. Note that
L.H.S. of (*)=x12+(x1+x2)2+⋯+(x1+x2+⋯+xn)2+(x2+⋯+xn)2+⋯+(xn−1+xn)2+xn2.(1)
Using the inequality a2+(a+b)2=a2+(−a−b)2≥21b2, we get
21(x12+(x1+x2)2)21((x1+x2)2+(x1+x2+x3)2)…21((x1+⋯+xn−1)2+(x1+⋯+xn)2)21((x1+⋯+xn−1)2+(x2+⋯+xn)2)…21((xn−1+xn)2+xn2)≥41x22,≥41x32,≥…≥41xn2,≥41x12,≥…≥41xn−12.
Summing the above and use (1) to get
L.H.S. of (*)≥43x12+21(x22+⋯+xn−12)+43xn2≥21(x12+⋯+xn2).
i.e. the inequality (*) holds for C=21.
Next, we prove that, if the inequality (*) holds for all n, then C≤21. In (1), take x1=1,x2=−2,x3=2,…,xn−1=(−1)n−22,xn=(−1)n−1, then every square in () is equal to 1, i.e. the R.H.S. of () is equal to 2n−2. Yet
i=1∑nxi2=4(n−2)+2=4n−6.
So,
C≤4n−62n−2=21+2n−31.
Letting n→∞ gives C≤21.
To sum up, the maximal C=21.