The following instruction defineds an Equivalence relation on the set of natural numbers.
$x \sim y \Leftrightarrow x,y$ are even
My idea:
Reflexivity: $x \sim x \Leftrightarrow x,x$ is even
Symmetry: $x \sim y \Leftrightarrow x,y$ are even
Transitivity: $x \sim y \Leftrightarrow x,y$ are even, $y \sim z \Leftrightarrow y,z$ are even $\Rightarrow x \sim z \Leftrightarrow x,z$ are even
So my result is, that it is an Equivalence relation, but the solution says it is not, but doesn't say why. Where is my mistake?
Reflexivity means that no equivalence class is empty, since the equivalence class of an element $x$ always contains at least one element: $x$ itself. As Marc pointed out in his comment, reflexivity fails, indeed if $x$ is odd then the set of $y$ such that $x \sim y$ is empty, thus $\sim$ is not an equivalence relation.