GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many permutations of {1, …, 6} have no increasing subsequence of length 4 and no decreasing subsequence of length 3?
- A. 25
- B. 5
- C. 36
- D. 16
Correct answer: A. 25
By RSK, longest increasing ≤ 3 and longest decreasing ≤ 2 means the shape fits in 2 rows and 3 columns; with 6 cells it must be exactly 3 + 3. The number of SYT of shape (3,3) is 5 (hook formula 6!/(4·3·2·3·2·1)), so the count is 5² = 25.
More Discrete Mathematics questions
- How many relations on {1, 2, 3} are reflexive and transitive (preorders) but are neither symmetric nor antisymmetric?
- A tree has 3 vertices of degree 4, 2 vertices of degree 3 and every other vertex is a leaf (degree 1). How many vertices does the tree have?
- The wheel W₉ consists of a hub joined to every vertex of a 9-cycle. What is its chromatic number?
- What is the maximum number of edges in a simple graph on 13 vertices that contains no K₄ (complete graph on 4 vertices)?
- How many Boolean functions of 4 variables are symmetric (their value depends only on how many inputs are 1)?
- Let π = (1 2 3 4)(5 6 7)(8 9) in S₉. Which statement about π is correct?