Mathematics (JEE)ModerateCodeforces Div2 D
How many permutations p of {1, 2, 3, 4, 5} have exactly one interior peak, meaning exactly one index i in {2, 3, 4} with p(i-1) < p(i) > p(i+1)?
- A. 104
- B. 88
- C. 16
- D. 120
Correct answer: B. 88
Enumerating all 120 permutations and counting those with exactly one interior peak gives 88.
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, ..., 9} have elements summing to exactly 15?
- How many functions f from {0, 1, 2, 3} to itself satisfy f(x) != x and f(x) != x + 1 (addition mod 4) for every x?
- How many permutations of {1, 2, ..., 7} have exactly 2 cycles in cycle notation (fixed points count as cycles)?
- How many nonempty subsets of {1, 2, ..., 8} have an element sum divisible by 6?
- How many 4-element subsets of {1, 2, ..., 12} contain no two elements whose difference is exactly 4?
- How many functions f from {1, 2, 3, 4, 5} onto {1, 2} (both values attained) satisfy f(1) != f(2)?