2016 AIME I Problem 8

Below is the professionally curated solution for Problem 8 of the 2016 AIME I, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2016 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:place valuepermutationscasework

Difficulty rating: 2710

8.

For a permutation p=(a1,a2,,a9)p = (a_1, a_2, \ldots, a_9) of the digits 1,2,,9,1, 2, \ldots, 9, let s(p)s(p) denote the sum of the three 33-digit numbers a1a2a3,a_1a_2a_3, a4a5a6,a_4a_5a_6, and a7a8a9.a_7a_8a_9. Let mm be the minimum value of s(p)s(p) subject to the condition that the units digit of s(p)s(p) is 0.0. Let nn denote the number of permutations pp with s(p)=m.s(p) = m. Find mn.|m - n|.

Solution:

By place value, s(p)=100(a1+a4+a7)+10(a2+a5+a8)+(a3+a6+a9),s(p) = 100(a_1 + a_4 + a_7) + 10(a_2 + a_5 + a_8) + (a_3 + a_6 + a_9), and all nine digits sum to 45.45. The units digit of s(p)s(p) is 00 exactly when a3+a6+a9=10a_3 + a_6 + a_9 = 10 or 20.20. Writing X=a1+a4+a7,X = a_1 + a_4 + a_7, if the units column sums to 1010 then s(p)=100X+10(35X)+10=90X+360900,s(p) = 100X + 10(35 - X) + 10 = 90X + 360 \ge 900, while if it sums to 2020 then s(p)=90X+270906+270=810.s(p) = 90X + 270 \ge 90 \cdot 6 + 270 = 810. So m=810,m = 810, achieved exactly when {a1,a4,a7}={1,2,3}\{a_1, a_4, a_7\} = \{1, 2, 3\} and the units digits sum to 20.20.

The remaining digits {4,5,6,7,8,9}\{4, 5, 6, 7, 8, 9\} must split so the units triple sums to 20:20: the possibilities are {4,7,9},\{4, 7, 9\}, {5,6,9},\{5, 6, 9\}, and {5,7,8}.\{5, 7, 8\}. Each of the 33 splits allows 3!3!3!=2163! \cdot 3! \cdot 3! = 216 arrangements of the three columns, so n=3216=648.n = 3 \cdot 216 = 648.

Therefore mn=810648=162.|m - n| = |810 - 648| = 162.

← Problem 7Full ExamProblem 9

Problem 8 in Other Years