GATE Computer ScienceHardGATE CS (PYQ pattern)

How many permutations π of {1, …, 7} with π(7) = 7 have exactly 2 descents (positions i with πᵢ > πᵢ₊₁)?

  1. A. 1191
  2. B. 302
  3. C. 66
  4. D. 604

Correct answer: B. 302

Putting the maximum 7 last creates no descent, so these correspond to permutations of {1,…,6} with exactly 2 descents: the Eulerian number A(6,2) = 3⁶ − 7·2⁶ + 21 = 729 − 448 + 21 = 302.

More Discrete Mathematics questions

Exams that ask this topic