Mathematics (JEE)ModerateCodeforces Div2 C

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

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

Correct answer: C. 32

Fill positions in order: position i may take values 1..i+1, of which i-1 are already used, leaving 2 choices for each of positions 1 to 5 and 1 choice for position 6, so the count is 2^5 = 32.

More Permutations, Combinations and Probability questions

Exams that ask this topic