返回题库

AIME 2001 I · 第 14 题

AIME 2001 I — Problem 14

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

A mail carrier delivers mail to the nineteen houses on the east side of Elm Street. The carrier notices that no two adjacent houses ever get mail on the same day, but that there are never more than two houses in a row that get no mail on the same day. How many different patterns of mail delivery are possible?

解析

Solutions

Solution 1

Let 00 represent a house that does not receive mail and 11 represent a house that does receive mail. This problem is now asking for the number of 1919-digit strings of 00's and 11's such that there are no two consecutive 11's and no three consecutive 00's.

The last two digits of any nn-digit string can't be 1111, so the only possibilities are 0000, 0101, and 1010.

Let ana_n be the number of nn-digit strings ending in 0000, bnb_n be the number of nn-digit strings ending in 0101, and cnc_n be the number of nn-digit strings ending in 1010.

If an nn-digit string ends in 0000, then the previous digit must be a 11, and the last two digits of the n1n-1 digits substring will be 1010. So

an=cn1.a_{n} = c_{n-1}. If an nn-digit string ends in 0101, then the previous digit can be either a 00 or a 11, and the last two digits of the n1n-1 digits substring can be either 0000 or 1010. So

bn=an1+cn1.b_{n} = a_{n-1} + c_{n-1}. If an nn-digit string ends in 1010, then the previous digit must be a 00, and the last two digits of the n1n-1 digits substring will be 0101. So

cn=bn1.c_{n} = b_{n-1}. Clearly, a2=b2=c2=1a_2=b_2=c_2=1. Using the recursive equations and initial values:

\multicolumn19cn2345678910111213141516171819an11122345791216212837496586bn122345791216212837496586114151cn1122345791216212837496586114\begin{array}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} \multicolumn{19}{c}{}\\\hline n&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&19\\\hline a_n&1&1&1&2&2&3&4&5&7&9&12&16&21&28&37&49&65&86\\\hline b_n&1&2&2&3&4&5&7&9&12&16&21&28&37&49&65&86&114&151\\\hline c_n&1&1&2&2&3&4&5&7&9&12&16&21&28&37&49&65&86&114\\\hline \end{array} As a result a19+b19+c19=351a_{19}+b_{19}+c_{19}=\boxed{351}.

Solution 2 ( Less recursion than solution 1)

Let MnM_n represent the number of mail delivery patterns that end with the last house receiving mail. This is bnb_n in Solution 1. Similarly define AnA_n to be the number of mail delivery patterns that end with last house not receiving mail. This is just ana_n and cnc_n in solution 1. Let TnT_n be the total number of mail delivery patterns.

Here are the possible ending cases: the string ends in 1,10,1, 10, or 100100. The first case is just MnM_n. The second case is Mn1M_{n-1}. The third case is Mn2M_{n-2}. So we have Tn=Mn+Mn1+Mn2T_n = M_n + M_{n-1} + M_{n-2}. Since we want T19T_{19}, it is just M18+M17+M16M_{18} + M_{17} + M_{16}. Now using the same logic as above we can find Mn=Mn2+Mn3M_n = M_{n-2} + M_{n-3} ( the cases are 01 and 001). We can refer back to solution 1's table and only keep track of bnb_n, ignoring both ana_n and cnc_n.

- MathLegend27

Solution 3 (Tedious Casework)

We split the problem into cases using the number of houses that get mail. Let "|" represent a house that gets mail, and "o" represent a house that doesn't. With a fixed number of |, an o can be inserted between 2 |'s or on the very left or right. There cannot be more than one o that is free to arrange to be placed between two |'s because no three o's can be adjacent, but there can be a maximum of two o's placed on the very left or right. Note that according to the Pigeonhole Principle, no more than 10 houses can get mail on the same day.

Case 1: 10 houses get mail. No 2 adjacent houses can get mail on the same day, so there must be an o between every two |. 101=910-1=9 o's are fixed so we count the number of ways to insert 19109=019 - 10 - 9 = 0 o's to 10+1=1110+1 = 11 spots, or (110)=1\binom{11}{0} = 1.

Case 2: 9 houses get mail. In this case, 91=89-1 = 8 o's are fixed so we count the number of ways to insert 1998=219 - 9 - 8 = 2 o's to 9+1=109+1=10 spots. However, there is also the case where two o's are both on the very left / right. When both o's that are free to arrange are put on a side, there are 101=910-1=9 spots left to insert 22=02-2=0 o's. Hence the total number of ways in this case is (102)+2(90)=47\binom{10}{2} + 2\binom{9}{0} = 47.

Case 3: 8 houses get mail. In this case, 81=78-1=7 o's are fixed so we count the number of ways to insert 1987=419-8-7=4 o's to 8+1=98+1=9 spots. When two o's are put to the very left / right, there are 91=89-1=8 spots left to insert 42=24-2=2 o's. We also need to take care of the case where two o's are on the very left and two o's are on the very right: we have 911=79-1-1=7 spots to insert 422=04-2-2=0 o's. Hence the total number of ways in this case is (94)+2(82)+(70)=183\binom{9}{4} + 2\binom{8}{2} + \binom{7}{0} = 183.

Case 4: 7 houses get mail. In this case, 71=67-1=6 o's are fixed so we count the number of ways to insert 1976=619-7-6=6 o's to 7+1=87+1=8 spots. When two o's are put to the very left / right, there are 81=78-1=7 spots left to insert 62=46-2=4 o's. When two o's are on the very left and two o's are on the very right, we have 811=68-1-1=6 spots to insert 622=26-2-2=2 o's. Hence the total number of ways in this case is (86)+2(74)+(62)=113\binom{8}{6} + 2\binom{7}{4} + \binom{6}{2} = 113.

Case 5: 6 houses get mail. We have to be careful in this case: 61=56-1=5 o's are fixed so we are inserting 1965=819-6-5=8 o's to 6+1=76+1=7 spots, which means that at least 1 of the 2 sides must have two o's. When 1 of the 2 sides have two o's, there are 71=67-1=6 spots to insert 82=68-2=6 o's. When both sides have two o's, there are 711=57-1-1=5 spots to insert 822=48-2-2=4 o's. Hence the total number of ways in this case is 2(66)+(54)=72\binom{6}{6} + \binom{5}{4} = 7.

When less than 6 houses get(s) mail, it's again not possible since at least three o's must be together (again, according to the Pigeonhole Principle). Therefore, the desired answer is 1+47+183+113+7=3511+47+183+113+7=\boxed{351}.

- MP8148

Solution 4 (Clean Recursion without Bash)

There doesn't seem to be anything especially noticeable about the number nineteen in this problem, meaning that we can replace the number nineteen with any number without a big effect on the logic that we use to solve the problem. This pits the problem as a likely candidate for recursion.

At first, it's not immediately clear how to relate the state of nn houses in general to that of n1,n2,n - 1, n - 2, or n3.n - 3. We thus break it up into cases, based on whether the first house gets mail or not.

Let pnp_n be the number of ways to distribute the mail to nn houses. Assume that the first house gets mail. Therefore, since no two adjacent houses get mail on the same day, the second house must not get mail. Starting from the third house, however, things start to look messy, and it looks like we have to break our recurrence down into even smaller cases, which is something that we don't like -- we want to keep our relations as simple as possible. Therefore, seeing that we can't work forwards anymore, we try to work backwards.

Once the mail carrier delivers the mail to the first and (lack of mail) to the second houses, have him deliver mail to the remaining n3n - 3 houses at the end of the row, skipping the third house. There are pn3p_{n - 3} ways to do this. Now, we see that the availability of mail at the third house is fixed -- if the fourth house doesn't receive mail, the third one must, and if the fourth house receives mail, the third one can't. Therefore, there are simply pn3p_{n-3} ways to deliver the mail if the first house gets mail.

If the first house doesn't get mail, then we use the same logic -- have the mail carrier skip the second house and deliver the remaining mail to the n2n - 2 houses in pn2p_{n-2} ways. Then, the availability of mail for the second house is fixed, so there are pn2p_{n - 2} ways to deliver the mail in this case.

We thus have established a recurrence relation -- since the first house either gets mail or it doesn't, and cannot achieve both at the same time, we are confident about the validity of our relation:

pn=pn2+pn3.p_n = p_{n-2} + p_{n-3}. Now, we simply calculate p1,p2,p_1, p_2, and p3.p_3. Then, it's off to the races for computation!

p1=2,p_1 = 2, because the first house can either gets mail or it doesn't -- there are no restrictions.

p2=3,p_2 = 3, because all of the possible deliveries are valid (of which there are 22=42 \cdot 2 = 4) except the one where both houses receive mail.

p3=4,p_3 = 4, as there are 44 possible ways (here, M represents that that house gets mail and N represents no mail): MNM, MNN, NNM, NMN.

Using our recurrence relation, we eventually get that p19=351,p_{19} = \boxed{351}, and we're done.

Solution by Ilikeapos

Solution 5

We use similar wording as in solution 1. In this problem, we divide into 3 cases:

Case 1: The first house gets mail. In other words, the sequence starts with a 1.1.

We first introduce two variables. Let xx be the number of 01's, and let yy be the number of 001's in the sequence. For each case, we will divide further into three sub-cases, based on the pattern of mail delivery for the last three houses.

Sub-case 1: The last house that gets mail is the 17th house. Thus, we have the equation 2x+3y=16,2x+3y=16, which has solutions (2,4),(5,2),(2,4),(5,2), and (8,0).(8,0). There are (2+42)+(5+22)+(8+08)=37\binom{2+4}{2}+\binom{5+2}{2}+\binom{8+0}{8}=37 total sequences.

Sub-case 2: The last house that gets mail is the 18th house. We have 2x+3y=17,2x+3y=17, and finding all solutions yields 49 total sequences.

Sub-case 3: The last house that gets mail is the 19th house. We have 2x+3y=18,2x+3y=18, which gives us 65 total sequences.

There are 151 sequences for this case.

Case 2: The first house that gets mail is the 2nd house. The sequence begins with 01.01.

Our sub-cases are still the same. However, our equations become 2x+3y=15,16,17.2x+3y=15,16,17. Computing yields 28+37+49=11428+37+49=114 sequences.

Case 3: The first house that gets mail is the 3rd house. The sequence starts with 001.001.

We have the equations 2x+3y=14,15,162x+3y=14,15,16 so we get 21+28+37=8621+28+37=86 sequences.

Totaling up gives us 151+114+86=351151+114+86=351 different sequences.

-math129

Solution 6 (Different recursion with two rules)

Let wnw_n be the number of possible ways if the last house has mail, and bnb_n be the number of possible ways if the last house does not have mail.

If the last house has mail, then, the next house can't have mail, meaning that bn=wn1b_n = w_{n - 1}.

If the last house doesn't have mail, then the next house can either have mail or not have mail. If the next house has mail, then we simply count the number of ways that the row ends in a house with mail, so that means so far, our recursive rule is wn=bn1+somethingw_n = b_{n - 1} + \text{something}. If the next house does not have mail, then the next house after that must have mail, meaning that wn=bn1+bn2w_n = b_{n - 1} + b_{n - 2}.

Recursing all the way up to b19b_{19} and w19w_{19}, we get 100+251=351100 + 251 = \boxed{351}

Solution 7 (Simple Recursion)

Let ana_n be the number of ways if the first house has mail, and let bnb_n be the number of ways if the first house does not get mail.

an=an2+an3a_n=a_{n-2}+a_{n-3} because if the first house gets mail, the next house that gets mail must either be the third or fourth house.

bn=an1+an2b_n=a_{n-1}+a_{n-2} because if the first house does not get mail, the next house that gets mail must either be the second or third house.

Note that we only need list out values of ana_n as bb depends on aa. a1=1,a2=1,a3=2,a4=2,a_1=1, a_2=1, a_3=2, a_4=2, \ldots.

a19+b19=a17+a16+a18+a17=a16+2a17+a18=65+286+114=351a_{19}+b_{19}=a_{17}+a_{16}+a_{18}+a_{17}=a_{16}+2\cdot a_{17}+a_{18}=65+2\cdot 86+114=\boxed{351}.

Solution 8 (11-11 Correspondence & Constructive Counting)

Like the previous solutions we use 11s and 00s to indicate whether a house get mails or not. Call a sequence of 11s and 00s valid if it has no two consecutive 11s or three consecutive 00s.

We claim there is a 11-to-11 correspondence between (A) a valid sequence of length 1919; and (B) a valid sequence of length 2525 that starts and ends with 11.

For each valid sequence in (B), we can remove the first three numbers as well as the last three numbers to get a valid sequence in (A).

On the other hand, for each valid sequence in (A), we can append three numbers to each end by the following rules to get a valid sequence in (B):

  1. If the sequence starts/ends with 11, we append 100100/001001 to the start/end;

  2. If the sequence starts/ends with 00, we append 101101 to the start/end.

Now, since all valid sequences in (B) start with either 10101010 or 10011001, and end with either 01010101 or 10011001, it's easy to see this is a 11-11 correspondence.

To compute the number of valid sequences in (B), we start with nn of 11s with n1n-1 of 00s in between, then distribute the rest 25(2n1)=262n25-(2n-1)=26-2n of 00s to the n1n-1 slots. The total number of valid sequences is then

n(n1262n)=(120)+(112)+(104)+(96)+(88)=1+55+210+84+1=351.\sum_n \binom{n-1}{26-2n} = \binom{12}{0} + \binom{11}{2} + \binom{10}{4} + \binom{9}{6} + \binom{8}{8} = 1 + 55 + 210 + 84 + 1 = 351. ~asops

Solution 9

When we see this problem, we immediately think of recursion. Let aka_k be the point such that the rightmost house of k houses receives mail. Then a1=1a_1=1, a2=1a_2=1, a3=2a_3=2. Now, we find the recurrence relation

an=an3+an2a_n=a_{n-3}+a_{n-2} because we can either have 1 space in between the mailed rightmost house of ana_n, or two spaces, as in our previous a’s we already have the a_n mailed rightmost. Solving, we get a17=86,a18=114,a19=151a_{17}=86, a_{18}=114, a_{19}=151. Now, we realize that the number of ways for the 19 houses to get mail is the sum of a17,a18,a19a_{17},a_{18},a_{19} because we can either have 2 empty no mail houses, 1 house, or the rightmost house is lit. Summing, we get 351\boxed{351}.

~MathCosine