Find all positive integers $ n$ such that there exists sequence consisting of $ 1$ and $ - 1: a_{1},a_{2},\cdots,a_{n}$ satisfying $ a_{1}\cdot1^2 + a_{2}\cdot2^2 + \cdots + a_{n}\cdot n^2 = 0.$
Source: Chinese TST 2007 2nd quiz P2
Tags: modular arithmetic, algebra proposed, algebra
Find all positive integers $ n$ such that there exists sequence consisting of $ 1$ and $ - 1: a_{1},a_{2},\cdots,a_{n}$ satisfying $ a_{1}\cdot1^2 + a_{2}\cdot2^2 + \cdots + a_{n}\cdot n^2 = 0.$