Sorry if this question is kind of stupid, but it randomly came into my mind and I've been thinking about it all day.
$xy \in \mathbb{Z}$ and $x - y \in \mathbb{Z}$. Are there any solutions for $x$ and $y$ where either $x$ or $y$ are not integers?
I tried writing a (badly written) small script to test this, and it detected no solutions for $-10 \leq x, y \lt 10$, although I'm pretty sure that's wrong.
If $p=xy$ and $d=x-y$ are these integers, then $x$ and $-y$ are the solutions of $$ X^2-dX-p=0.$$ These are rational (and, by the rational root theorem, automatically integer!) if and only if the discriminant $d^2+4p$ is a perfect square.