MathLabs

Problem 1

Let dd be any positive integer not equal to 22, 55, or 1313. Show that one can find distinct elements aa and bb in the set {2,5,13,d}\{2, 5, 13, d\} such that ab−1ab - 1 is not a perfect square.
Step 6 of 6: Case d≡5,9(mod16)d\equiv5,9\pmod{16} and conclusion
5d−1(mod16)∉{0,1,4,9}5d-1\pmod{16}\notin\{0,1,4,9\}
Detailed analysis

Similarly, 5d−1≡8(mod16)5d-1\equiv8\pmod{16} when d≡5(mod16)d\equiv5\pmod{16} and 5d−1≡12(mod16)5d-1\equiv12\pmod{16} when d≡9(mod16)d\equiv9\pmod{16}; again neither value is a quadratic residue mod 1616. So 5d−15d-1 is not a perfect square and (a,b)=(5,d)(a,b)=(5,d) works. Every residue class of dd has now been handled, so the claim holds for all d∉{2,5,13}d\notin\{2,5,13\}.