MathLabs

Problem 4

The positive integers a a and b b are such that 15a+16b15a+16b and 16a−15b16a-15b are both squares of positive integers. What is the least possible value of the smaller of these two squares?
Step 2 of 4: Use residues modulo 1313
In plain words

Use residues modulo 1313

m≡n≡0(mod13)m\equiv n\equiv0\pmod{13}
Detailed analysis

Modulo 1313, the first identity is 2m2+3n2≡02m^2+3n^2\equiv0, so if n≢0 n\not\equiv0 then m2/n2≡5(mod13) m^2/n^2\equiv5\pmod{13}. Since 55 is a quadratic nonresidue modulo 1313, we must have n≡0 n\equiv0, and then m≡0 m\equiv0.