IMO LinearRecursion
Difficult
1981

Problem - 2325
Find the maximal value of $m^2+n^2$ if $m$ and $n$ are integers between $1$ and $1981$ satisfying $(n^2-mn-m^2)^2=1$.