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)?
- A. 265
- B. 660
- C. 135
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- In how many ways can 10 identical balls be placed into 4 distinct boxes if boxes 1 and 2 hold at most 3 balls each and boxes 3 and 4 hold…
- What is C(1024, 512) mod 3?
- What is C(50, 20) mod 13, where 13 is prime?
- What is the exponent of 2 in the prime factorisation of C(100, 50)?
- How many trailing zeros does C(200, 100) have when written in base 10?
- What is the sum of C(20, k)^2 for k = 0 to 19, taken modulo 1009?