I am very new to modular arithmetic, and I encountered the following statement on page 7 of this paper: If $x$ is even then $y^2 \equiv-2\pmod{8}$
The equation in question is $y^2=x^3-2$
I do not understand why. Could someone give a hint or a nudge in the right direction as to why this is true? My knowledge of modular arithmetic is sparse and I have absolutely no idea where to look in this case.
Write $x$ as a general even number, put $x=2n$ for $n \in \mathbb{Z}$, then $$y^{2}=(2n)^{3}-2=8n^{3}-2$$ Modulo $8$ this leaves a remainder of $-2$.