Maths Olympiad Prep

Library / /51 of 82

Combinatorics Difficulty 5.2 AIME, harder Prove it United States

Problem:

How many nondecreasing sequences a1,a2,,a10a_{1}, a_{2}, \ldots, a_{10} are composed entirely of at most three distinct numbers from the set {1,2,,9}\{1,2, \ldots, 9\} (so 1,1,1,2,2,2,3,3,3,31,1,1,2,2,2,3,3,3,3 and 2,2,2,2,5,5,5,5,5,52,2,2,2,5,5,5,5,5,5 are both allowed)?

Solution

Solution:

Answer: 3357

From any sequence a1,a2,,a10a_{1}, a_{2}, \ldots, a_{10}, construct a sequence b1,b2,,b9b_{1}, b_{2}, \ldots, b_{9}, where bib_{i} counts the number of times ii occurs in the sequence. There is a correspondence from all possible sequences b1,b2,,b9b_{1}, b_{2}, \ldots, b_{9} with at most 3 nonzero terms which add to 10, since any sequence of a1,a2,,a10a_{1}, a_{2}, \ldots, a_{10} will be converted to this form, and from any sequence b1,b2,,b9b_{1}, b_{2}, \ldots, b_{9}, we can construct a unique sequence of aa-s by listing ii bib_{i} times (for 1i91 \leq i \leq 9) in nondecreasing order.

Our goal now is to count the number of possible sequences b1,b2,,b9b_{1}, b_{2}, \ldots, b_{9} meeting our conditions. We casework on the number of nonzero terms in the sequence:

Case 1: The sequence has exactly one nonzero term.

Then exactly one of b1,b2,,b9b_{1}, b_{2}, \ldots, b_{9} is equal to 10, and all the rest are equal to 0. This gives us 9 possible sequences in this case.

Case 2: The sequence has exactly two nonzero terms.

There are (92)=36\binom{9}{2} = 36 ways to choose the two terms bi,bjb_{i}, b_{j} (i<ji < j) which are nonzero. From here, we have 9 choices for the value of bib_{i}, namely 1 through 9 (since both bib_{i} and bjb_{j} must be nonzero), and bjb_{j} will be fixed, so this case gives us 369=32436 \cdot 9 = 324 possible sequences.

Case 3: The sequence has exactly three nonzero terms.

There are (93)=84\binom{9}{3} = 84 ways to choose the three terms bi,bj,bkb_{i}, b_{j}, b_{k} (i<j<ki < j < k) which are nonzero. Letting ci=bi1c_{i} = b_{i} - 1, cj=bj1c_{j} = b_{j} - 1, ck=bk1c_{k} = b_{k} - 1, we have that ci,cj,ckc_{i}, c_{j}, c_{k} are nonnegative integers which sum to 7. There are (92)=36\binom{9}{2} = 36 solutions to this equation (consider placing two dividers in the nine spaces between the ten elements), giving 8436=302484 \cdot 36 = 3024 possibilities in this case.

We then have 9+324+3024=33579 + 324 + 3024 = 3357 possible sequences.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.