GATE Computer ScienceHardGATE CS (PYQ pattern)
How many functions f : {1, 2, 3, 4, 5} → {1, 2, 3, 4, 5} are simultaneously non-decreasing, satisfy f(x) ≥ x for all x, and satisfy f(f(x)) = f(x) for all x?
- A. 42
- B. 16
- C. 32
- D. 55
Correct answer: B. 16
Idempotence makes the image the fixed-point set F, and f(x) ≥ x with monotonicity forces f(x) = the least element of F that is ≥ x (a closure operator on the chain). F must contain 5 and is otherwise arbitrary: 2⁴ = 16. (Dropping idempotence gives Catalan C₅ = 42.)
More Discrete Mathematics questions
- The poset G = {0,1} × {0,1,2} carries the product order. How many order-preserving maps f : G → {0 < 1 < 2} are there?
- In the partition lattice Π₄ of {1, 2, 3, 4} (ordered by refinement, 15 elements), how many complements does the partition {{1,2},{3,4}}…
- In the divisor lattice (D₁₈₀₀, |) with bottom 1 and top 1800 = 2³·3²·5², how many elements have NO complement?
- Let P be the set of all even-sized subsets of {1, 2, 3, 4} ordered by inclusion. Which statement about (P, ⊆) is TRUE?
- Consider all subsets of {1, …, 6} of size 1, 3 or 5, ordered by inclusion. What is the minimum number of chains needed to cover this poset?
- Let μ be the number-theoretic Möbius function and σ(m) the sum of the divisors of m. What is Σ over all divisors d of 360 of μ(d)·σ(360/d)?