Mathematics (JEE)HardCodeforces Div2 D

How many permutations of {1, 2, 3, 4, 5, 6} contain no three consecutive positions i, i+1, i+2 whose values are strictly decreasing?

  1. A. 420
  2. B. 698
  3. C. 349
  4. D. 720

Correct answer: C. 349

Enumerating all 720 permutations and rejecting any with p(i) > p(i+1) > p(i+2) for some i leaves 349.

More Permutations, Combinations and Probability questions

Exams that ask this topic