Problem

Source: Brazil Cono Sur TST 2020

Tags: number theory



Prove that for each positive integer $n$, there exists a number $M$, such that $M$ can be written as sum of $1,2,3,\dots, n$ distinct perfect squares.