A regular polygon A1…AnA_{1} \ldots A_{n}A1…An is inscribed in a circle of radius RRR with center OOO. Let XXX be an arbitrary point. Prove that A1X2+…+AnX2=n(R2+d2)A_{1} X^{2} + \ldots + A_{n} X^{2} = n \left( R^{2} + d^{2} \right)A1X2+…+A, where d=OXd = OXd=OX.