Let an+1=a1, a0=an, and let M and m denote the maximum and minimum values of a1,a2,…,an, respectively. Remark that the maximum and minimum values of a1−2a2,a2−2a3,…,an−2a1 are also M and m, respectively. Take s satisfying as=m. Then, from M≥as−1−2as≥m−2m, we have M+m≥0. Therefore, if we choose t satisfying at=M, then from at−1−2at≥m, it follows that at−1≥2at+m=2M+m≥M, implying at−1=M. Hence, by induction, we conclude that ai=M for any i. Consequently, from the assumption, we have M=M−2M, which implies M=0. Thus, it is necessary for ai=0 for any i. Conversely, the problem assumption is satisfied for this case. Therefore, the solution is (a1,a2,…,an)=(0,0,…,0).
Another Solution. Let an+1=a1, then from the assumption, we have:
0=i=1∑n(ai−2ai+1)2−i=1∑nai2=i=1∑nai2−4i=1∑naiai+1+4i=1∑nai+12−i=1∑nai2=2(i=1∑nai2−2i=1∑naiai+1+i=1∑nai+12)=2i=1∑n(ai−ai+1)2
Hence, a1=a2=⋯=an. The subsequent steps are the same as the main solution.