Mathematics (JEE)Very hardCodeforces Div2 D

How many permutations of {1, 2, 3, 4, 5, 6} have exactly two fixed points (positions i with p(i) = i)?

  1. A. 265
  2. B. 660
  3. C. 135
  4. D. 360

Correct answer: C. 135

Choose the 2 fixed points in C(6,2) = 15 ways and derange the other 4 (D4 = 9), giving 15*9 = 135.

More Permutations, Combinations and Probability questions

Exams that ask this topic