Skip to main content

AMC 12 Mock Exam 8 Problem 19

Problem 19 of 25

Six students, all of different heights, stand in a row. A drop occurs between two neighboring students when the student on the left is taller than the student on the right. For example, if the students' heights in centimeters are 153,148,160,171,165,150153,148,160,171,165,150 from left to right, there are three drops. In how many of the 720720 possible orders of the six students are there exactly two drops?

Answer choices

Show solution

Solution

Number the students 11 to 66 from shortest to tallest; an order is a permutation, and a drop is a descent. Let DkD_k be the number of orders with exactly kk drops. Clearly D0=1D_0=1.

Two groups. Give each student a label LL or RR (262^6 ways), then line up the LL students in increasing height followed by the RR students in increasing height. The resulting order has at most one drop. Conversely, an order together with a cut position c∈{0,1,…,6}c\in\{0,1,\dots,6\} (the first cc students are the LL group) arises from exactly one labeling whenever both pieces are increasing. The increasing order can be cut anywhere (77 ways), and an order with one drop only at its drop. Hence 26=7D0+D12^6=7D_0+D_1, so D1=57D_1=57.

Three groups. Similarly, give each student a label 11, 22, or 33 (36=7293^6=729 ways) and line up group 11, then group 22, then group 33, each in increasing height. Each labeling corresponds to exactly one pair (order, cuts 0≤c1≤c2≤60\le c_1\le c_2\le6) in which all three pieces are increasing, i.e., every drop is at c1c_1 or c2c_2. Count the cut pairs for each order:

  • no drop: any 0≤c1≤c2≤60\le c_1\le c_2\le6, which is (82)=28\binom82=28 pairs;
  • one drop at position ss: c1=s≤c2c_1=s\le c_2 (7−s7-s pairs) or c1≤c2=sc_1\le c_2=s (s+1s+1 pairs), with (s,s)(s,s) counted twice: 77 pairs;
  • two drops at s<ts<t: only (c1,c2)=(s,t)(c_1,c_2)=(s,t), 11 pair.

Orders with three or more drops never arise. Therefore 729=28D0+7D1+D2=28+399+D2729=28D_0+7D_1+D_2=28+399+D_2, and D2=302D_2=\boxed{302}.

(Check: D0+D1+D2=360D_0+D_1+D_2=360, half of 720720, consistent with the symmetry k↔5−kk\leftrightarrow5-k obtained by reversing the row. Forgetting the 28D028D_0 term gives 330330, and 360360 counts orders with at most two drops.)

Tagged: permutations with exactly two descents (Eulerian number via labelings)