Maths Olympiad Prep

Library / /262 of 348

Combinatorics Difficulty 5.0 AIME, harder Find the answer

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

A number or a short expression. Spacing and $ signs are ignored.

Solution

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 ibii b_{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,bj(i<j)b_{i}, b_{j}(i<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,bk(i<j<k)b_{i}, b_{j}, b_{k}(i<j<k) which are nonzero. Letting ci=bi1,cj=bj1,ck=bk1c_{i}=b_{i}-1, c_{j}=b_{j}-1, c_{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 possbilities 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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.