MathLabs

Problem 3

Determine the maximum value of m2+n2m^2+n^2, where mm and nn are integers satisfying m,n∈{1,2,…,1981}m, n \in \{1, 2, \ldots, 1981\} and (n2−mn−m2)2=1(n^2-mn-m^2)^2 = 1.
Step 2 of 6: Find the recursive symmetry
In plain words

This is exactly the Fibonacci recurrence hiding inside the algebra: moving forward by (a,b)↦(b,a+b)(a,b)\mapsto(b,a+b) preserves being a solution while flipping the sign of n2−mn−m2n^2-mn-m^2.

(m+k)2−(m+k)m−m2=−(m2−km−k2)(m+k)^2-(m+k)m-m^2 = -\big(m^2-km-k^2\big)
Detailed analysis

Expanding the left side and simplifying shows that if (k,m)(k,m) satisfies the defining equation with value ε=±1\varepsilon=\pm1, then (m,m+k)(m,m+k) satisfies it with value −ε-\varepsilon. So (a,b)(a,b) is a solution exactly when (b,a+b)(b,a+b) is a solution, with the sign flipped.