## Not a square

Take $d$ a positive integer different from $2,5,13$. Prove that we can find two distinct numbers $a,b$ from the set $\{2,5,13,d\}$ such that $ab-1$ is not the square of an integer.
IMO 1986