Problem

Source: 2014 Thailand October Camp Number Theory Quiz p2

Tags: number theory, quadratic mean



Determine the least integer $n > 1$ such that the quadratic mean of the first $n$ positive integers is an integer. Note: the quadratic mean of $a_1, a_2, \dots , a_n$ is defined to be $\sqrt{\frac{a_1^2+a_2^2+\cdots+a_n^2}{n}}$.