Write some code to find the maximal value of $m^2+n^2$ if $m$ and $n$ are integers between 1 and 1981 that satisfy $(n^2-mn-m^2)^2=1$. (From Andreescu, p. 63.)← Back to challenges | Lessons

Run Share Lua reference

Here is a share link to your code:

Close