返回题库

AIME 2020 II · 第 9 题

AIME 2020 II — Problem 9

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

While watching a show, Ayako, Billy, Carlos, Dahlia, Ehuang, and Frank sat in that order in a row of six chairs. During the break, they went to the kitchen for a snack. When they came back, they sat on those six chairs in such a way that if two of them sat next to each other before the break, then they did not sit next to each other after the break. Find the number of possible seating orders they could have chosen after the break.

解析

Solution (Bash)

There are 2512^{5}-1 intersections that we must consider if we are to perform a PIE bash on this problem. Since we don't really want to think that hard, and bashing does not take that long for this problem, we can write down half of all permutations that satisfy the conditions presented in the problem in "lexicographically next" order to keep track easily. We do this for all cases such that the first "person" is ACA-C, and multiply by two, since the number of working permutations with DFD-F as the first person is the same as if it were ACA-C, hence, after doing such a bash, we get 45×2=9045\times2=90 permutations that result in no consecutive letters being adjacent to each other. ~afatperson

Solution 2 (Official MAA)

Ayako (AA), Billy (B)(B), Carlos (C)(C), Dahlia (D)(D), Ehuang (E)(E), and Frank (F)(F) originally sat in the order ABCDEFABCDEF. Let T(XY)T(XY) denote the set of seatings where XX and YY sit next to each other after the break. Then the required number of seating orders is given by the Inclusion-Exclusion Principle as

6!(T(AB)+T(BC)+T(CD)+T(DE)+T(EF))+6!-\big(|T(AB)|+|T(BC)|+|T(CD)|+|T(DE)|+|T(EF)|\big)+ (T(AB)T(BC)+T(AB)T(CD)+).\big(|T(AB)\cap T(BC)|+|T(AB)\cap T(CD)|+\cdots\big) - \cdots. Each term can be calculated separately.

(a) T(AB)=T(BC)=T(CD)=T(DE)=T(EF)=25!=240.|T(AB)|=|T(BC)|=|T(CD)|=|T(DE)|=|T(EF)|=2\cdot5!=240. Because there are 55 terms, the sum is 5240=12005\cdot240=1200.

(b) For T(XY)T(ZW)|T(XY)\cap T(ZW)|, if Y=ZY=Z, then XYWXYW must sit consecutively, so T(XY)T(ZW)=24!=48|T(XY)\cap T(ZW)|=2\cdot4!=48. There are 44 terms that satisfy Y=ZY=Z, so the sum is 448=1924\cdot 48=192. If XYXY and ZWZW are pairwise disjoint, then T(XY)T(ZW)=224!=96|T(XY)\cap T(ZW)|=2^2\cdot4!=96. There are 66 terms, so the sum is 696=5766\cdot96=576.

(c) If there are at least three pairs that sit next to each other, consider these three subcases: If the three pairs are consecutive, the sum is 323!=363\cdot2\cdot3!=36. If exactly two of the pairs are consecutive, the sum is 6223!=1446\cdot2^2\cdot3!=144. If none of the three pairs is consecutive, the sum is 1233!=48.1\cdot2^3\cdot3!=48.

(d) If there are at least four pairs that sit next to each other, then if the pairs are consecutive, the sum is 222!=82\cdot2\cdot2!=8. If the pairs are not consecutive, then the sum is 3222!=243\cdot2^2\cdot2!=24.

(e) If all five pairs sit next to each other, the number is 121!=21\cdot2\cdot1!=2.

Therefore the required number of seating orders is

6!1200+(192+576)(36+144+48)+(8+24)2=90.6!-1200+(192+576)-{(36+144+48)+(8+24)-2}=90. Note: See the A002464 of the On-Line Encyclopedia of Integer Sequences for equivalent formulations.

Solution 3

We proceed with casework based on the person who sits first after the break.

Case 1:\textbf{Case 1:} A is first. Then the first three people in the row can be ACE, ACF, ADB, ADF, AEB, AEC, AFB, AFC, or AFD, which yield 2, 1, 2, 2, 1, 2, 0, 1, and 1 possible configurations, respectively, implying 2 + 1 + 2 + 2 + 1 + 2 + 0 + 1 + 1 = 12 possible configurations in this case.

Case 2:\textbf{Case 2:} B is first. Then the first three people in the row can be BDA, BDF, BEA, BEC, BFA, BFC, or BFD, which yield 2, 4, 2, 4, 0, 1, and 2 possible configurations, respectively, implying 2 + 4 + 2 + 4 + 0 + 1 + 2 = 15 possible configurations in this case.

Case 3:\textbf{Case 3:} C is first. Then the first three people in the row can be CAD, CAE, CAF, CEA, CEB, CFA, CFB, or CFD, which yield 1, 2, 1, 4, 4, 2, 2, and 2 possible configurations, respectively, implying 1 + 2 + 1 + 4 + 4 + 2 + 2 + 2 = 18 possible configurations in this case.

Finally, the number of valid configurations for A and F, B and E, and C and D are equal by symmetry, so our final answer is 2(12 + 15 + 18), which computes to be 090.\boxed{090}. ~peace09

Solution 4

We determine the order of A, B, C, relative to each other. Then, we will insert D, E, F into the alignment and calculate the total number of possibilities. This solution can be visualised as standing in lines rather than sitting on chairs.

There are 6 possible alignments for A, B, and C, but we only evaluate 3 because the other 3 cases can be mirrored to overlap these 3 cases.

Case 1: A B C\textbf{Case 1: A B C} In this case, there must be a person standing between A and B and also between B and C. Also, D cannot be adjacent to C. There are 9 possibilities.

Case 2: A C B\textbf{Case 2: A C B} In this case, there must be a person standing between B and C. Also, D cannot be adjacent to C. There are 12 possibilities.

Case 3: C A B\textbf{Case 3: C A B} In this case, there must be a person standing between A and B. Also, D cannot be adjacent to C. There are 24 possibilities.

So the total number of cases is 2(9+12+24)=090\boxed{090}.

-Superdolphin

Solution 5 (Recursion, taking less time)

Consider arrangements of numbers 1,2,3,...,n1, 2, 3, ..., n.

Let f(n,k)f(n,k) be the number of arrangements in which 11 and 22, 22 and 33, 33 and 44, ..., k1k-1 and kk aren't together. We need to find f(6,6)f(6,6).

Let d(n,k)d(n,k) be the number of arrangements in which 11 and 22, 22 and 33, 33 and 44, ..., k2k-2 and k1k-1 aren't together, but (k1)(k-1) and kk are together.

Then,

f(n,k+1)=f(n,k)d(n,k+1)......(1)f(n,k+1) = f(n,k) - d(n,k+1) ......(1) d(n,k+1)=2f(n1,k)+d(n1,k)......(2)d(n,k+1) = 2f(n-1,k) + d(n-1,k) ......(2) Hence,

f(n,k+1)=f(n,k)f(n1,k)f(n1,k1)f(n,k+1)=f(n,k)-f(n-1,k)-f(n-1,k-1) And because f(n,0)=f(n,1)=n!f(n,0) = f(n,1) = n!, it's easy to get f(6,6)=090f(6,6) = \boxed{090}

k,nn=1n=2n=3n=4n=5n=6k=112624120720k=2021272480k=30436288k=4220180k=514124k=690\begin{array}{|c|c|c|c|c|c|c|}\hline k,n & n=1 & n=2 & n=3 & n=4 & n=5 & n=6\\\hline k=1 & 1 & 2 & 6 & 24 & 120 & 720\\\hline k=2 & & 0 & 2 & 12 & 72 & 480\\\hline k=3 & & & 0 & 4 & 36 & 288\\\hline k=4 & & & & 2 & 20 & 180\\\hline k=5 & & & & & 14 & 124\\\hline k=6 & & & & & & 90\\\hline \end{array} Note: How to get the two equations (1) and (2).

1. If 11 and 22, 22 and 33, ... , k1k-1 and kk aren't together, there are two cases:

(a) kk and k+1k+1 aren't together. There are f(n,k+1)f(n,k+1) ways of arrangements.

(b) kk and k+1k+1 are together. There are d(n,k+1)d(n,k+1) ways of arrangements.

Thus, f(n,k)=f(n,k+1)+d(n,k+1)f(n,k)=f(n,k+1)+d(n,k+1), i.e. f(n,k+1)=f(n,k)d(n,k+1)f(n,k+1)=f(n,k)-d(n,k+1), which is the first equation.

2. If 11 and 22, 22 and 33, ... , k1k-1 and kk aren't together, but kk and k+1k+1 are together, there are 2 cases :

(a) k1k-1 isn't together with kk or k+1k+1. We first determine the order of kk and k+1k+1, then, we can treat them as one number since they should be always together. Hence, the number of arrangements is 2f(n1,k)2f(n-1,k).

(b) k1k-1 is together with kk or k+1k+1. We first determine the order of kk and k+1k+1, then treat them as one "super number". Since k1k-1 is together with the "super number", there are 2d(n1,k)2d(n-1,k) ways of arrangements. However, k1k-1 can only be on one side of the "super number" because k1k-1 and kk aren't together, so we need to multiple a 1/21/2 to the number of arrangements. Finally, there are 2d(n1,k)(1/2)=d(n1,k)2d(n-1,k)*(1/2)=d(n-1,k) ways of arrangements.

Thus, d(n,k+1)=2f(n1,k)+d(n1,k)d(n,k+1)=2f(n-1,k)+d(n-1,k), which is the second equation.

~Shawn

Solution 6 (fast)

We will split up our cases based on the positions of AA, BB, and CC relative to each other.

Case 11: AA BB CC: 99 cases

Case 22: AA CC BB: 1616 cases

Case 33: BB AA CC: 2020 cases

Since we can reverse the first case to make CC BB AA, reverse the second case to make BB CC AA, and reverse the third case to make CC AA BB, by symmetry we have 2(9+16+20)=0902(9+16+20) = \boxed{090} ways in total.

~xHypotenuse

Isn't this the same as Solution 4?

Video Solution

https://www.youtube.com/watch?v=Bh04e_J5YGs

~MathProblemSolvingSkills.com