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: Reformulate the claim
In plain words

Perfect squares occupy only a few residue classes modulo any fixed number, so checking dd modulo 44 and then modulo 1616 should already force a contradiction in every case.

2d−1, 5d−1, 13d−12d-1,\ 5d-1,\ 13d-1
Detailed analysis

It suffices to show that for every d∉{2,5,13}d\notin\{2,5,13\}, at least one of the three numbers 2d−12d-1, 5d−15d-1, 13d−113d-1 (obtained by pairing dd with each of 2,5,132,5,13) fails to be a perfect square; that pair is then the required a,ba,b.