Show that the equation has non integer solution $x^2 - 3y = 5$
According to the solutions of the exercise, for that equation to have integer solutions then $$x^2\equiv5\pmod 3$$ must be true, otherwise it has non integer solutions.
Why is this true? Where does the (mod 3) come from? Why not (mod of something else)?
We rearrange the equation to get $x^2 = 3y + 5$, which says that we're looking for an $x$ that, when squared, is three times some integer $y$ plus 5. And "is equal to three times some integer plus 5" is the same as "is congruent to 5, mod 3". Hence, $x$ is a solution to the equation if and only if $x^2 \equiv 5\ (\mbox{mod } 3)$.