Mathematics (JEE)HardCodeforces Div2 D

How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(i) >= i - 2 for every i?

  1. A. 720
  2. B. 32
  3. C. 64
  4. D. 162

Correct answer: D. 162

Enumerating the 720 permutations and rejecting any with p(i) < i - 2 for some i leaves 162.

More Permutations, Combinations and Probability questions

Exams that ask this topic