Mathematics (JEE)Very hardCodeforces Div2 D
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?
- A. 265
- B. 455
- C. 160
- D. 80
Correct answer: D. 80
Enumerating the 720 permutations and rejecting any with p(i) equal to i or to i+1 mod 6 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 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?
- How many functions f from {1, 2, 3, 4, 5, 6} to itself have exactly 2 fixed points (values i with f(i) = i)?