GATE / CS ARCHIVE

GATE CSE 2000 / QUESTION 2.5

Equivalence classes of parity

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2000 paper

GATE 2000, Q2.5 2 marks · MCQ
Report issue

Sets, Relations & Functions

Question 2.5, GATE 2000: On integers, define xRy when x+y is even. Is R not an equivalence relation, or does it have one,two,or three equivalence classes?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: x+y is even exactly when x and y have the same parity. Every integer has its own parity, parity matching is symmetric, and matching parity is transitive.

Step 2: The two classes are all even integers and all odd integers. Neither is empty, and no even integer relates to an odd one.

Hence R is an equivalence relation with exactly two classes, C.

Original paper, page 4