Problem

Source:

Tags: modular arithmetic, number theory unsolved, number theory



Let $a, b, c, d, m, n$ be positive integers such that $a^{2}+b^{2}+c^{2}+d^{2}=1989$, $n^{2}=max\left \{ a,b,c,d \right \}$ and $a+b+c+d=m^{2}$. Find the values of $m$ and $n$.