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?
- A. 151
- B. 125
- C. 114
- 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
- On the integers define a R b iff a³ ≡ b³ (mod 504). How many equivalence classes does R have? (504 = 8 · 7 · 9)
- How many onto functions f : {1, …, 7} → {a, b, c, d} have exactly one element of the codomain with a single preimage?
- How many functions f : {1, …, 6} → {1, …, 6} satisfy f(f(f(x))) = f(x) for every x?
- How many permutations π of {1, …, 7} satisfy π⁶ = identity but π² ≠ identity?
- What is the largest size of a subset S of {1, 2, …, 40} such that 7 ∈ S and no element of S divides another element of S?
- How many integers from 1 to 1000 are divisible by exactly two of the three numbers 4, 6 and 10?