Mathematics (JEE)HardCodeforces Div2 D
How many permutations of {1, 2, 3, 4, 5, 6} contain no three consecutive positions i, i+1, i+2 whose values are strictly decreasing?
- A. 420
- B. 698
- C. 349
- D. 720
Correct answer: C. 349
Enumerating all 720 permutations and rejecting any with p(i) > p(i+1) > p(i+2) for some i leaves 349.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many 3-element subsets of {1, 2, ..., 20} have an element sum divisible by 4?
- How many ordered triples (a, b, c) of distinct elements from {1, 2, ..., 7} have a + b + c divisible by 3?
- How many functions f from {1, 2, 3, 4} onto {1, 2, 3} (every value 1, 2, 3 is attained) satisfy f(1) != f(2)?
- How many permutations p of {1, 2, ..., 6} satisfy p(i) != i and p(i) != 7 - i for every i from 1 to 6?
- 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)?