2017 AIME I Problem 11

Below is the professionally curated solution for Problem 11 of the 2017 AIME I, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2017 AIME I 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:median (data)caseworkpermutations

Difficulty rating: 2990

11.

Consider arrangements of the 99 numbers 1,2,3,,91, 2, 3, \ldots, 9 in a 3×33 \times 3 array. For each such arrangement, let a1,a_1, a2,a_2, and a3a_3 be the medians of the numbers in rows 1,1, 2,2, and 3,3, respectively, and then let mm be the median of {a1,a2,a3}.\{a_1, a_2, a_3\}. Let QQ be the number of arrangements for which m=5.m = 5. Find the remainder when QQ is divided by 1000.1000.

Solution:

Rename each of 1,2,3,41, 2, 3, 4 as L and each of 6,7,8,96, 7, 8, 9 as G. If 55 is not a row median, then no row median equals 5,5, so m5.m \neq 5. Thus 55's row must contain one L and one G (reading L5G in some order), and the other two rows must supply one median below 55 and one above. With the remaining three L's and three G's, those rows are either LLL and GGG, or LLG and LGG.

Count arrangements of letters: the three row types can be assigned to rows 1,2,31, 2, 3 in 3!=63! = 6 ways, and the L5G row can be ordered in 3!=63! = 6 ways. In the first case LLL and GGG have 11 ordering each, giving 661=366 \cdot 6 \cdot 1 = 36 patterns; in the second, LLG and LGG each have 33 orderings, giving 669=3246 \cdot 6 \cdot 9 = 324 patterns. That is 360360 letter patterns in all.

Finally the four L's can be filled with 1,2,3,41, 2, 3, 4 in 4!4! ways and the four G's with 6,7,8,96, 7, 8, 9 in 4!4! ways, so Q=360242=207360,Q = 360 \cdot 24^2 = 207360, whose remainder mod 10001000 is 360.360.

← Problem 10Full ExamProblem 12

Problem 11 in Other Years