If the statement is true, then prove it, otherwise provide a counter example.
If $x,y \in \mathbb{Z}$ such that $x = y^2$, then $x\equiv y \pmod 2$
Could someone just check to see if my proof is correct or that i made a mistake somewhere. Thank you.
Proof: Counter Example. There exists $x,y \in \mathbb{Z}$ such that $x=y^2$, then $x \not \equiv y \pmod 2$. Let $x$ equal $3$, then $y^2$ equals $9$. Because you cannot divide $9$ by $2$, the statement $x \equiv y \pmod2$ is false. $3 \not \equiv 3 \pmod2$.