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 3 of 4: Use residues modulo 3737
In plain words

Use residues modulo 3737

m≡n≡0(mod37)m\equiv n\equiv0\pmod{37}
Detailed analysis

Modulo 3737, the same identity gives m2/n2≡31 m^2/n^2\equiv31 when n≢0 n\not\equiv0. The residue 3131 is a quadratic nonresidue modulo 3737, so again n≡m≡0(mod37) n\equiv m\equiv0\pmod{37}. Thus 481∣m,n481\mid m,n .