It is known that, for all positive integers $k$, \[1^2+2^2+3^2+\ldots+k^{2}=\frac{k(k+1)(2k+1)}6.\] Find the smallest positive integer $k$ such that $1^2+2^2+3^2+\ldots+k^2$ is a multiple of $360$.
We need $2160=2^4\cdot3^3\cdot5\mid k(k+1)(2k+1)$.
Since $2k+1$ is odd and $k,k+1$ are coprime, $16\mid k$ or $16\mid k+1$; $27$ divides one of the three (pairwise coprime) factors; and $5$ divides one of them.
Checking in order, the first $k$ is $80$, where $80\cdot81\cdot161$ has $16\mid80$, $27\mid81$, $5\mid80$.