GATE Computer ScienceHardGATE CS (PYQ pattern)
How many ordered pairs (f, g) of functions from {1, 2, 3} to itself satisfy f∘g = g∘f?
- A. 162
- B. 110
- C. 141
- D. 81
Correct answer: C. 141
Enumerating all 27 × 27 = 729 pairs gives 141 commuting pairs.
More Discrete Mathematics questions
- In how many ways can 8 distinct people be split into 3 non-empty groups (groups unlabelled) such that no group has exactly one person?
- The relation R = {(1,2), (2,3), (3,1), (3,4), (5,6), (6,5), (4,5)} is defined on {1, …, 6}. How many ordered pairs does its transitive…
- Let I be the identity relation on {1, 2, 3, 4}. How many relations R on this set satisfy R∘R = I (composition of R with itself equals I)?
- Which of the following sets are countable? I. The set of all finite subsets of ℕ II. The set of all functions f : ℕ → {0, 1} III. The set…
- For how many integers n with 1 ≤ n ≤ 200 is the divisor lattice (Dₙ, |) a chain or a Boolean algebra (or both)?
- In the divisor lattice (D₃₆₀, |), a maximal chain goes from 1 to 360 multiplying by one prime at each step. How many maximal chains pass…