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?

  1. A. 25
  2. B. 5
  3. C. 36
  4. 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

Exams that ask this topic