Skip to main content

2022 AMC 12A Problem 19

Problem 19 of 25HarderCounting & Probability

Suppose that 1313 cards numbered 1,1, 2,2, 3,3, ,\ldots, 1313 are arranged in a row. The task is to pick them up in numerically increasing order, working repeatedly from left to right. In the example below, cards 1,1, 2,2, 33 are picked up on the first pass, 44 and 55 on the second pass, 66 on the third pass, 7,7, 8,8, 9,9, 1010 on the fourth pass, and 11,11, 12,12, 1313 on the fifth pass. For how many of the 13!13! possible orderings of the cards will the 1313 cards be picked up in exactly two passes?

Answer choices

Show solution

Solution

Let pos(k)\text{pos}(k) be the position of card k.k. A fresh pass is needed exactly when pos(k+1)<pos(k),\text{pos}(k+1)\lt\text{pos}(k), so the number of passes is one more than the number of descents in the sequence pos(1),pos(2),,pos(13).\text{pos}(1),\text{pos}(2),\ldots,\text{pos}(13). To build a permutation with at most one descent, choose the entries before the possible descent and write both chosen blocks in increasing order. There are 2132^{13} subsets. The 1414 initial segments ,{1},,{1,,13}\varnothing,\{1\},\ldots,\{1,\ldots,13\} produce no descent; every other subset produces a unique permutation with one descent. Hence the count is 21314=8178.2^{13}-14=8178. Thus, the correct answer is D.

More practice

Concepts: permutations · pattern recognition

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.