Mathematics (JEE)Very hardCodeforces Div2 D
How many permutations p of {1, 2, ..., 6} satisfy p(i) != i and p(i) != 7 - i for every i from 1 to 6?
- A. 265
- B. 455
- C. 80
- D. 160
Correct answer: C. 80
Enumerating the 720 permutations and rejecting any with p(i) = i or p(i) = 7 - i for some i leaves 80.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations p of {0, 1, 2, 3, 4, 5} satisfy p(i) != i and p(i) != i+1 (addition mod 6) for every i?
- How many 5-element subsets of {1, 2, ..., 10} contain no three consecutive integers (no k, k+1, k+2 all in the subset)?
- How many partitions of the set {1, 2, 3, 4, 5, 6} have every block of odd size? Blocks are unlabelled.
- How many 4-element subsets of {1, 2, ..., 12} contain no two elements whose sum is 13?
- Five people 1, 2, 3, 4, 5 sit around a round table. Seatings that differ by a rotation are the same, but mirror images are different…
- How many strings of length 5 over {A, B, C, D} use all four letters at least once and have no two equal adjacent letters?