GATE Computer ScienceHardGATE CS (PYQ pattern)
How many surjective functions f : {1, …, 6} → {a, b, c} satisfy f(1) = f(2)?
- A. 180
- B. 90
- C. 150
- D. 120
Correct answer: C. 150
Merge 1 and 2 into one element: surjections from 5 elements onto 3 values = 3!·S(5,3) = 150.
More Discrete Mathematics questions
- How many down-sets (order ideals, including the empty set) does the divisor poset (D₁₈₀, |) have? (180 = 2²·3²·5)
- Consider the 3 × 3 grid poset {1,2,3} × {1,2,3} with the product order. How many of its linear extensions list (1,3) before (2,1)?
- How many non-empty sublattices (subsets closed under both join and meet) does the diamond lattice M₃ have?
- In the partition lattice Π₅ of {1, …, 5} ordered by refinement, let 0̂ be the partition into singletons. What is the Möbius function value…
- A maximal chain in the partition lattice Π₅ starts at the all-singletons partition and merges two blocks at each step until one block…
- The poset consists of the 6 non-empty proper subsets of {1, 2, 3} ordered by inclusion (three singletons and three pairs). How many…