GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many functions f : {1, …, 6} → {1, …, 6} have an image with exactly 3 elements and no fixed point (f(x) ≠ x for all x)?
- A. 3360
- B. 10800
- C. 4320
- D. 2880
Correct answer: A. 3360
Fix the image T (C(6,3) = 20 ways). Maps into T without fixed points: each t ∈ T has 2 choices, the other 3 points 3 choices: 2³·3³ = 216. Those missing a given t₀ ∈ T: t₀ has 2 choices, the other two elements of T have 1, the rest 2: 16, times 3 = 48. Missing two values is impossible (that value would be fixed). 216 − 48 = 168 per T; 20 · 168 = 3360.
More Discrete Mathematics questions
- How many surjective functions f : {1, …, 6} → {a, b, c} satisfy f(1) = f(2)?
- 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…