Problem 4
Find all pairs of integers (m,n) such that m squared plus 4n and n squared plus 4m are both perfect squares.
Step 4 of 5: Check the remaining three roots
Detailed analysis
For x=-1, substitution gives n=1-m and again both expressions are squares, the same family in the opposite ordering. For x=2 and x=-2, substitution reduces the second square condition to elementary difference-of-squares equations; under |m|>=|n| the surviving pairs are (-4,-4), (-5,-6), and (3,-2). Symmetry adds (-6,-5) and (-2,3).