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 1 of 6: Set up the three squares
In plain words

If no pairing worked, all three numbers would be squares simultaneously; parity and divisibility constraints on dd will then clash.

p2=2d−1,q2=5d−1,r2=13d−1p^2=2d-1,\quad q^2=5d-1,\quad r^2=13d-1
Detailed analysis

Suppose, for contradiction, that p2=2d−1p^2=2d-1, q2=5d−1q^2=5d-1, r2=13d−1r^2=13d-1 for integers p,q,rp,q,r. We derive a contradiction, which shows at least one of the three cannot be a perfect square.