2022 AMC 12A Problem 19

Below is the professionally curated solution for Problem 19 of the 2022 AMC 12A, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2022 AMC 12A solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:permutationspattern recognition

Difficulty rating: 2010

19.

Suppose that 1313 cards numbered 1,2,3,,131,2,3,\ldots,13 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,2,31,2,3 are picked up on the first pass, 44 and 55 on the second pass, 66 on the third pass, 7,8,9,107,8,9,10 on the fourth pass, and 11,12,1311,12,13 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?

40824082

40954095

40964096

81788178

81918191

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

Exactly two passes means exactly one descent. The number of permutations of 1313 elements with exactly one descent is the Eulerian number 131=213131=8178.\left\langle{13\atop1}\right\rangle=2^{13}-13-1=8178.

Thus, the correct answer is D.

Problem 19 in Other Years