What is an equivalence relation? For each of the following pairs (X,∼), determine whether or not ∼ is an equivalence relation on X :
(i) X=R,x∼y iff x−y is an even integer;
(ii) X=C\{0},x∼y iff xyˉ∈R;
(iii) X=C\{0},x∼y iff xyˉ∈Z;
(iv) X=Z\{0},x∼y iff x2−y2 is ±1 times a perfect square.