Mathematics (JEE)HardCodeforces Div2 D
How many permutations p of {1, 2, ..., 7} satisfy p(1) < p(2) > p(3) < p(4) > p(5) < p(6) > p(7)?
- A. 2520
- B. 720
- C. 272
- D. 544
Correct answer: C. 272
These are alternating (up-down) permutations; their count is the Euler zigzag number E_7 = 272.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations of {1, 2, ..., 7} have exactly one descent, that is, exactly one position i with p(i) > p(i+1)?
- How many permutations p of {1, 2, ..., 6} satisfy |p(i) - i| != 1 and p(i) != i for every i from 1 to 6?
- How many strings of length 5 over the alphabet {0, 1, 2, 3} have no two equal adjacent symbols and do not begin with 0?
- How many distinct arrangements of the letters of CODEFORCES have no two identical letters in adjacent positions? (The letters C, O and E…
- How many subsets of {1, 2, ..., 12} (including the empty set) contain no two elements whose difference is 1 or 2?
- How many 4-element subsets of {1, 2, ..., 20} contain no two consecutive integers?