Problem

Source: Spanish Communities

Tags: LaTeX, combinatorics unsolved, combinatorics



The set $M= \{1;2;3;\ldots ; 29;30\}$ is divided in $k$ subsets such that if $a+b=n^2, (a,b \in M, a\neq b, n$ is an integer number $)$, then $a$ and $b$ belong different subsets. Determine the minimum value of $k$.