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)?

  1. A. 2520
  2. B. 720
  3. C. 272
  4. D. 544

Correct answer: C. 272

These are alternating (up-down) permutations; their count is the Euler zigzag number E_7 = 272.

More Permutations, Combinations and Probability questions

Exams that ask this topic