GATE Computer ScienceHardGATE CS (PYQ pattern)

How many equivalence relations on {1, 2, …, 7} relate 1 with 2, but relate neither 3 with 4 nor 1 with 3?

  1. A. 151
  2. B. 125
  3. C. 114
  4. D. 99

Correct answer: C. 114

Merge 1 and 2 into one element A, leaving a 6-element set {A, 3, 4, 5, 6, 7}: B₆ = 203 partitions. Subtract those with 3 ~ 4 (B₅ = 52) and those with A ~ 3 (52), add back A ~ 3 ~ 4 (B₄ = 15): 203 − 104 + 15 = 114.

More Discrete Mathematics questions

Exams that ask this topic