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 2 of 6: Squares are 00 or 11 modulo 44
13d−1≡d−1(mod4)13d-1\equiv d-1\pmod4
Detailed analysis

Since 13≡1(mod4)13\equiv1\pmod4, we get 13d−1≡d−1(mod4)13d-1\equiv d-1\pmod4. A perfect square is 00 or 11 modulo 44, so 13d−113d-1 can only be a square when d≡1d\equiv1 or 2(mod4)2\pmod4. Hence if d≡0d\equiv0 or 3(mod4)3\pmod4, 13d−113d-1 is not a perfect square, and we may take (a,b)=(13,d)(a,b)=(13,d).