Difference between revisions of "2021 AMC 10A Problems/Problem 20"
Martin wang (talk | contribs) (→Solution 7 (Using a Table)) |
|||
(91 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
==Problem== | ==Problem== | ||
In how many ways can the sequence <math>1,2,3,4,5</math> be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing? | In how many ways can the sequence <math>1,2,3,4,5</math> be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing? | ||
+ | |||
<math>\textbf{(A)} ~10\qquad\textbf{(B)} ~18\qquad\textbf{(C)} ~24 \qquad\textbf{(D)} ~32 \qquad\textbf{(E)} ~44</math> | <math>\textbf{(A)} ~10\qquad\textbf{(B)} ~18\qquad\textbf{(C)} ~24 \qquad\textbf{(D)} ~32 \qquad\textbf{(E)} ~44</math> | ||
− | ==Solution ( | + | ==Solution 1 (Enumeration)== |
− | We write out the | + | We write out the <math>5!=120</math> cases, then filter out the valid ones: |
− | + | ||
− | <math> | + | <math>13254,14253,14352,15243,15342,21435,21534,23154,24153,24351,25143,25341,\linebreak |
− | <math> | + | 31425,31524,32415,32514,34152,34251,35142,35241,41325,41523,42315,42513,\linebreak |
− | + | 43512,45132,45231,51324,51423,52314,52413,53412.</math> | |
− | <math> | + | |
− | <math> | + | We count these out and get <math>\boxed{\textbf{(D)} ~32}</math> permutations that work. |
− | <math> | + | |
− | <math> | + | ~contactbibliophile |
− | <math>1 | + | |
− | <math> | + | ==Solution 2 (Enumeration by Symmetry)== |
− | < | + | By symmetry with respect to <math>3,</math> note that <math>(x_1,x_2,x_3,x_4,x_5)</math> is a valid sequence if and only if <math>(6-x_1,6-x_2,6-x_3,6-x_4,6-x_5)</math> is a valid sequence. We enumerate the valid sequences that start with <math>1,2,31,</math> or <math>32,</math> as shown below: |
− | + | ||
− | + | <asy> | |
− | + | /* Made by MRENTHUSIASM */ | |
− | + | size(16cm); | |
− | + | ||
− | + | draw((0.25,0)--(1.75,3),red,EndArrow); | |
− | + | draw((0.25,0)--(1.75,0),red,EndArrow); | |
− | + | draw((0.25,0)--(1.75,-3),red,EndArrow); | |
− | + | draw((2.25,3)--(3.75,3),red,EndArrow); | |
− | + | draw((2.25,0)--(3.75,0.75),red,EndArrow); | |
− | + | draw((2.25,0)--(3.75,-0.75),red,EndArrow); | |
− | + | draw((2.25,-3)--(3.75,-2.25),red,EndArrow); | |
− | + | draw((2.25,-3)--(3.75,-3.75),red,EndArrow); | |
− | + | draw((4.25,3)--(5.75,3),red,EndArrow); | |
− | + | draw((4.25,0.75)--(5.75,0.75),red,EndArrow); | |
− | + | draw((4.25,-0.75)--(5.75,-0.75),red,EndArrow); | |
− | + | draw((4.25,-2.25)--(5.75,-2.25),red,EndArrow); | |
− | + | draw((4.25,-3.75)--(5.75,-3.75),red,EndArrow); | |
− | + | draw((6.25,3)--(7.75,3),red,EndArrow); | |
− | + | draw((6.25,0.75)--(7.75,0.75),red,EndArrow); | |
− | + | draw((6.25,-0.75)--(7.75,-0.75),red,EndArrow); | |
− | + | draw((6.25,-2.25)--(7.75,-2.25),red,EndArrow); | |
− | + | draw((6.25,-3.75)--(7.75,-3.75),red,EndArrow); | |
− | + | ||
− | + | label("$1$",(0,0)); | |
− | + | label("$3$",(2,3)); | |
− | + | label("$2$",(4,3)); | |
− | + | label("$5$",(6,3)); | |
− | + | label("$4$",(8,3)); | |
− | + | ||
− | + | label("$4$",(2,0)); | |
− | + | label("$2$",(4,0.75)); | |
− | + | label("$5$",(6,0.75)); | |
− | + | label("$3$",(8,0.75)); | |
− | + | label("$3$",(4,-0.75)); | |
− | + | label("$5$",(6,-0.75)); | |
− | + | label("$2$",(8,-0.75)); | |
− | + | ||
− | + | label("$5$",(2,-3)); | |
− | + | label("$2$",(4,-2.25)); | |
− | + | label("$4$",(6,-2.25)); | |
− | + | label("$3$",(8,-2.25)); | |
− | + | label("$3$",(4,-3.75)); | |
− | + | label("$4$",(6,-3.75)); | |
− | + | label("$2$",(8,-3.75)); | |
− | + | ||
− | + | draw((12.75,0)--(14.25,4.5),red,EndArrow); | |
− | + | draw((12.75,0)--(14.25,1.5),red,EndArrow); | |
− | + | draw((12.75,0)--(14.25,-1.5),red,EndArrow); | |
− | + | draw((12.75,0)--(14.25,-4.5),red,EndArrow); | |
− | + | draw((14.75,4.5)--(16.25,5.25),red,EndArrow); | |
− | + | draw((14.75,4.5)--(16.25,3.75),red,EndArrow); | |
− | + | draw((14.75,1.5)--(16.25,1.5),red,EndArrow); | |
− | + | draw((14.75,-1.5)--(16.25,-0.75),red,EndArrow); | |
− | + | draw((14.75,-1.5)--(16.25,-2.25),red,EndArrow); | |
− | + | draw((14.75,-4.5)--(16.25,-3.75),red,EndArrow); | |
− | + | draw((14.75,-4.5)--(16.25,-5.25),red,EndArrow); | |
− | + | draw((16.75,5.25)--(18.25,5.25),red,EndArrow); | |
− | + | draw((16.75,3.75)--(18.25,3.75),red,EndArrow); | |
− | + | draw((16.75,1.5)--(18.25,1.5),red,EndArrow); | |
− | + | draw((16.75,-0.75)--(18.25,-0.75),red,EndArrow); | |
− | + | draw((16.75,-2.25)--(18.25,-2.25),red,EndArrow); | |
− | + | draw((16.75,-3.75)--(18.25,-3.75),red,EndArrow); | |
− | + | draw((16.75,-5.25)--(18.25,-5.25),red,EndArrow); | |
− | + | draw((18.75,5.25)--(20.25,5.25),red,EndArrow); | |
− | + | draw((18.75,3.75)--(20.25,3.75),red,EndArrow); | |
− | + | draw((18.75,1.5)--(20.25,1.5),red,EndArrow); | |
− | + | draw((18.75,-0.75)--(20.25,-0.75),red,EndArrow); | |
− | + | draw((18.75,-2.25)--(20.25,-2.25),red,EndArrow); | |
− | + | draw((18.75,-3.75)--(20.25,-3.75),red,EndArrow); | |
− | + | draw((18.75,-5.25)--(20.25,-5.25),red,EndArrow); | |
− | + | ||
− | + | label("$2$",(12.5,0)); | |
− | + | label("$1$",(14.5,4.5)); | |
− | + | label("$3$",(14.5,1.5)); | |
− | + | label("$4$",(14.5,-1.5)); | |
− | + | label("$5$",(14.5,-4.5)); | |
− | + | ||
− | + | label("$4$",(16.5,5.25)); | |
− | + | label("$5$",(16.5,3.75)); | |
− | + | label("$1$",(16.5,1.5)); | |
− | + | label("$1$",(16.5,-0.75)); | |
− | + | label("$3$",(16.5,-2.25)); | |
− | + | label("$1$",(16.5,-3.75)); | |
− | + | label("$3$",(16.5,-5.25)); | |
− | + | ||
− | + | label("$3$",(18.5,5.25)); | |
− | + | label("$3$",(18.5,3.75)); | |
− | + | label("$5$",(18.5,1.5)); | |
− | + | label("$5$",(18.5,-0.75)); | |
− | + | label("$5$",(18.5,-2.25)); | |
− | <math> | + | label("$4$",(18.5,-3.75)); |
− | <math> | + | label("$4$",(18.5,-5.25)); |
− | <math> | + | |
− | <math>5, | + | label("$5$",(20.5,5.25)); |
− | <math> | + | label("$4$",(20.5,3.75)); |
− | + | label("$4$",(20.5,1.5)); | |
− | + | label("$3$",(20.5,-0.75)); | |
− | + | label("$1$",(20.5,-2.25)); | |
− | <math> | + | label("$3$",(20.5,-3.75)); |
− | <math> | + | label("$1$",(20.5,-5.25)); |
− | <math> | + | |
− | <math> | + | draw((25.25,0)--(26.75,1.5),red,EndArrow); |
− | <math>5, | + | draw((25.25,0)--(26.75,-1.5),red,EndArrow); |
− | <math> | + | draw((27.25,1.5)--(28.75,2.25),red,EndArrow); |
− | <math> | + | draw((27.25,1.5)--(28.75,0.75),red,EndArrow); |
− | <math> | + | draw((27.25,-1.5)--(28.75,-0.75),red,EndArrow); |
− | <math> | + | draw((27.25,-1.5)--(28.75,-2.25),red,EndArrow); |
− | + | draw((29.25,2.25)--(30.75,2.25),red,EndArrow); | |
− | <math> | + | draw((29.25,0.75)--(30.75,0.75),red,EndArrow); |
− | + | draw((29.25,-0.75)--(30.75,-0.75),red,EndArrow); | |
− | + | draw((29.25,-2.25)--(30.75,-2.25),red,EndArrow); | |
+ | draw((31.25,2.25)--(32.75,2.25),red,EndArrow); | ||
+ | draw((31.25,0.75)--(32.75,0.75),red,EndArrow); | ||
+ | draw((31.25,-0.75)--(32.75,-0.75),red,EndArrow); | ||
+ | draw((31.25,-2.25)--(32.75,-2.25),red,EndArrow); | ||
+ | |||
+ | label("$3$",(25,0)); | ||
+ | label("$1$",(27,1.5)); | ||
+ | label("$2$",(27,-1.5)); | ||
+ | |||
+ | label("$4$",(29,2.25)); | ||
+ | label("$5$",(29,0.75)); | ||
+ | label("$4$",(29,-0.75)); | ||
+ | label("$5$",(29,-2.25)); | ||
+ | |||
+ | label("$2$",(31,2.25)); | ||
+ | label("$2$",(31,0.75)); | ||
+ | label("$1$",(31,-0.75)); | ||
+ | label("$1$",(31,-2.25)); | ||
+ | |||
+ | label("$5$",(33,2.25)); | ||
+ | label("$4$",(33,0.75)); | ||
+ | label("$5$",(33,-0.75)); | ||
+ | label("$4$",(33,-2.25)); | ||
+ | </asy> | ||
+ | |||
+ | There are <math>16</math> valid sequences that start with <math>1,2,31,</math> or <math>32.</math> By symmetry, there are <math>16</math> valid sequences that start with <math>5,4,35,</math> or <math>34.</math> So, the answer is <math>16+16=\boxed{\textbf{(D)} ~32}.</math> | ||
+ | |||
+ | ~MRENTHUSIASM (inspired by Snowfan) | ||
+ | |||
+ | ==Solution 3 (Casework on the Consecutive Digits)== | ||
+ | Reading the terms from left to right, we have two cases for the consecutive digits, where <math>+</math> means increase and <math>-</math> means decrease: | ||
+ | |||
+ | <math>\textbf{Case \#1: }\boldsymbol{+,-,+,-}</math> | ||
+ | |||
+ | <math>\textbf{Case \#2: }\boldsymbol{-,+,-,+}</math> | ||
+ | |||
+ | For <math>\text{Case \#1},</math> note that for the second and fourth terms, one term must be <math>5,</math> and the other term must be either <math>3</math> or <math>4.</math> We have four subcases: | ||
+ | |||
+ | <math>(1) \ \underline{\hspace{3mm}}3\underline{\hspace{3mm}}5\underline{\hspace{3mm}}</math> | ||
+ | |||
+ | <math>(2) \ \underline{\hspace{3mm}}5\underline{\hspace{3mm}}3\underline{\hspace{3mm}}</math> | ||
+ | |||
+ | <math>(3) \ \underline{\hspace{3mm}}4\underline{\hspace{3mm}}5\underline{\hspace{3mm}}</math> | ||
+ | |||
+ | <math>(4) \ \underline{\hspace{3mm}}5\underline{\hspace{3mm}}4\underline{\hspace{3mm}}</math> | ||
+ | |||
+ | For <math>(1),</math> the first two blanks must be <math>1</math> and <math>2</math> in some order, and the last blank must be <math>4.</math> So, we get <math>2</math> possibilities. Similarly, <math>(2)</math> also has <math>2</math> possibilities. | ||
+ | |||
+ | For <math>(3),</math> there are no restrictions for the numbers <math>1, 2,</math> and <math>3.</math> So, we get <math>3!=6</math> possibilities. Similarly, <math>(4)</math> also has <math>6</math> possibilities. | ||
+ | |||
+ | Together, <math>\text{Case \#1}</math> has <math>2+2+6+6=16</math> possibilities. By symmetry, <math>\text{Case \#2}</math> also has <math>16</math> possibilities. | ||
+ | |||
+ | Finally, the answer is <math>16+16=\boxed{\textbf{(D)} ~32}.</math> | ||
+ | |||
+ | <u><b>Remark</b></u> | ||
+ | |||
+ | This problem is somewhat similar to [[2004_AIME_I_Problems/Problem_6|2004 AIME I Problem 6]]. | ||
+ | |||
+ | ~MRENTHUSIASM | ||
+ | |||
+ | ==Solution 4 (Casework Similar to Solution 3)== | ||
+ | Like Solution 3, we have two cases. Due to symmetry, we just need to count one of the cases. For the purpose of this solution, we will be doing <math>-,+,-,+</math>. Instead of starting with 5, we start with 1. | ||
+ | |||
+ | There are two ways to place it: | ||
+ | |||
+ | _1_ _ _ | ||
+ | |||
+ | _ _ _1_ | ||
+ | |||
+ | Now we place 2, it can either be next to 1 and on the outside, or is place in where 1 would go in the other case. So now we have another two "sub case": | ||
+ | |||
+ | _1_2_(case 1) | ||
+ | |||
+ | 21_ _ _(case 2) | ||
+ | |||
+ | There are 3! ways to arrange the rest for case 1, since there is no restriction. | ||
+ | |||
+ | For case 2, we need to consider how many ways to arrange 3,4,5 in a a>b<c fashion. It should seem pretty obvious that b has to be 3, so there will be 2! way to put 4 and 5. | ||
+ | |||
+ | Now we find our result, times 2 for symmetry, times 2 for placement of 1 and times (3!+2!) for the two different cases for placement of 2. This give us <math>2*2*(3!+2!)=4*(6+2)=\boxed{\textbf{(D)} ~32}</math>. | ||
+ | |||
+ | ~~Xhte | ||
+ | |||
+ | == Solution 5 (Casework on the Position of 5) == | ||
+ | |||
+ | We only need to find the # of rearrangements when 5 is the 4th digit and 5th digit. Find the total, and multiply by 2. Then we can get the answer by adding the case when 5 is the third digit. | ||
+ | |||
+ | '''Case <math>1</math>:''' 5 is the 5th digit. __ __ __ __ 5 | ||
+ | |||
+ | Then <math>4</math> can only be either 1st digit or the 3rd digit. | ||
+ | |||
+ | 4 __ __ __ 5, then the only way is that <math>3</math> is the 3rd digit, so it can be either <math>231</math> or <math>132</math>, give us <math>2</math> results. | ||
+ | |||
+ | __ __ 4 __ 5, then the 1st digit must be <math>2</math> or <math>3</math>, <math>2</math> gives us <math>1</math> way, and <math>3</math> gives us <math>2</math> ways. (Can't be <math>1</math> because the first digit would increasing). Therefore, <math>4</math> in the middle and <math>5</math> in the last would result in <math>3</math> ways. | ||
+ | |||
+ | '''Case <math>2</math>:''' <math>5</math> is the fourth digit. __ __ __ 5 __ | ||
+ | |||
+ | Then the last digit can be all of the 4 numbers <math>1</math>, <math>2</math>, <math>3</math>, and <math>4</math>. Let's say if the last digit is <math>4</math>, then the 2nd digit would be the largest for the remaining digits to prevent increasing order or decreasing order. Then the remaining two are interchangeable, give us <math>2!</math> ways. All of the <math>4</math> can work, so case <math>2</math> would result in <math>2!+2!+2!+2!=8</math> ways. | ||
+ | |||
+ | '''Case <math>3</math>:''' <math>5</math> is in the middle. __ __ 5 __ __ | ||
+ | |||
+ | Then there are only two cases: | ||
+ | 1. <math>42513</math>, then 4 and 3 are interchangeable, which results in <math>2!*2!</math>. Or it can be <math>43512</math>, then 4 and 2 are interchangeable, but it can not be <math>23514</math>, so there can only be 2 possible ways: <math>43512</math>, <math>21534</math>. | ||
+ | |||
+ | Therefore, case 3 would result in <math>4+2=6</math> ways. | ||
+ | |||
+ | <math>8+3+2=13</math>, so the total ways for case 1 and case 2 with both increasing and decreasing would be <math>13*2=26.</math> | ||
+ | |||
+ | Finally, we have <math>26+6=\boxed{\textbf{(D)} ~32}.</math> | ||
+ | |||
+ | ~Michael595 | ||
+ | |||
+ | == Solution 6 (Overcounting) == | ||
+ | |||
+ | First, we list the triples that are invalid: | ||
+ | |||
+ | 543, 542, 541, 532, 531, 521, 432, 431, 321 | ||
+ | |||
+ | By symmetry, there are the same amount of increasing triplets as there are decreasing ones. This yields 18 invalid 3 digit permutations in total. | ||
+ | |||
+ | Suppose the triplet is ABC and the other 2 digits are X and Y. We then have 3 ways to arrange a triplet with 2 other digits. | ||
+ | |||
+ | ABCXY, XABCY, XYABC | ||
+ | |||
+ | X and Y can be arranged 2 ways. | ||
+ | |||
+ | XY, YX | ||
+ | |||
+ | This produces 18*3*2=108 permutations of invalid results. We have 5! | ||
+ | ways to arrange 5 numbers so 120-108=12. | ||
+ | |||
+ | Now, we must account for overcounting. For example, when 543 is counted, | ||
+ | it only registers as one invalid permutation but in fact, it is 3 whole | ||
+ | invalid permutations. We then complete this for the rest of the list: | ||
+ | |||
+ | 54321 has 543, 432, and 321 | ||
+ | |||
+ | 54213 has 542 and 421 | ||
+ | |||
+ | 54123 has 541 and 123 | ||
+ | |||
+ | 53214 has 532 and 321 | ||
+ | |||
+ | 53124 has 531 and 124 | ||
+ | |||
+ | 52134 has 521 and 134 | ||
+ | |||
+ | 43215 has 432 and 321 | ||
+ | |||
+ | 43125 has 431 and 125 | ||
+ | |||
+ | 32145 has 321 and 145 | ||
+ | |||
+ | This produces 19 values that we have overcounted but this value itself is also overcounted. We already counted 9 of the terms. This brings the final value of overcounted terms down to 10 for the decreasing triplets. By symmetry, 10 increasing triplets were overcounted. | ||
+ | |||
+ | This gives us <math>120-108+20=\boxed{\textbf{(D)} ~32}.</math> | ||
+ | |||
+ | ~ Lukiebear | ||
+ | |||
+ | == Solution 7 (Using a Table) == | ||
+ | |||
+ | It is easier to consider the complement of the desired cases, so try to find the cases that DO have three integers in increasing order. First, write down the sets of three numbers that feature the numbers in increasing order. They are <math>123, 124, 125, 134, 135, 145, 234, 245, 345</math>. Each of these can be in three positions: the three are in the front with two more numbers in the back, the three are in the middle with two on each side, and two in the front and the set of three in the back. Now, count the number of combinations of <math>5</math> numbers that each of the set of three can form that have not been previously accounted for. Also, if the set features both <math>3</math> increasing and <math>3</math> decreasing, then do not count it because we will separately count them. | ||
+ | |||
+ | <cmath> | ||
+ | \begin{tabular}[t]{|l|c|c|c|} | ||
+ | \hline | ||
+ | Three Increasing Numbers&Front&Middle&Back\\\hline | ||
+ | 123&2&2&2\\\hline | ||
+ | 124&2&2&2\\\hline | ||
+ | 125&1&2&2\\\hline | ||
+ | 134&2&2&2\\\hline | ||
+ | 135&1&2&2\\\hline | ||
+ | 145&1&2&2\\\hline | ||
+ | 234&2&1&1\\\hline | ||
+ | 245&1&1&1\\\hline | ||
+ | 345&1&0&1\\\hline | ||
+ | \end{tabular}</cmath> | ||
+ | |||
+ | This gives us a total of <math>41</math> possibilities. These account for the possibilities with ONLY increasing numbers. Mirror over to the other side to get the set of combinations with either at least <math>1</math> set of <math>3</math> increasing numbers in a row or only at least <math>1</math> set of <math>3</math> decreasing numbers, but not both. We can count the ones with both separately. <math>14532, 12543, 13542, 54123, 53124, 52134</math>. Total of <math>6</math>. | ||
+ | |||
+ | <math>41\cdot 2+6=82+6=88</math>. This is the compliment. There are a total of <math>5!=120</math>. <math>120-88=32</math>. | ||
+ | |||
+ | Thus, the answer is <math>\boxed{\textbf{(D)} ~32}</math>. | ||
+ | |||
+ | ~Evan Liu | ||
+ | ~Marshall_Huang (changes to LaTex and one spelling error) | ||
+ | |||
+ | == Solution 8 (Symmetry)== | ||
+ | First, note that there is a symmetry from <math>+,-,+,-</math> to <math>-,+,-,+</math> as follows: <math>a, b, c, d, e \leftrightarrow 6-a, 6-b, 6-c, 6-d, 6-e</math>. Now, consider the placement of 5 in the <math>+,-,+,-</math> case. Clearly, 5 is the maximum value, so it must be placed in the 2nd position or the 4th position, but we also have symmetry <math>a, b, c, d, e \leftrightarrow e, d, c, b, a</math>. We will find the number of sequences with 5 in the second position by using casework on the position of the 4. | ||
+ | |||
+ | '''Case 1: ''' | ||
+ | |||
+ | 4 5 __ __ __: 3 is the maximum value, so it must go into the 4th position, leaving us 2 ways to fill in 1 and 2. | ||
+ | |||
+ | '''Case 2: ''' | ||
+ | |||
+ | __ 5 __ 4 __: 1, 2, and 3 are all less than 4 or 5, so they can be filled in any manner: 3! = 6. | ||
+ | |||
+ | Overall, we have 8 ways to fill in the sequences. By our two types of symmetry, there are <math>8 \cdot 2 \cdot 2 = \boxed{\textbf{(D)} ~32}</math>. | ||
+ | |||
+ | ~alligator112 | ||
+ | |||
+ | == Solution 9 (PIE-NO casework)== | ||
+ | |||
+ | We use complementary counting. | ||
+ | |||
+ | Let <math>A</math> be the set of all permutations <math>(a_1, a_2, a_3, a_4, a_5)</math> of <math>(1,2,3,4,5)</math> in which there exists at least one set of three consecutive increasing terms, and let <math>B</math> be the set of all permutations of <math>(1,2,3,4,5)</math> in which there exists at least one set of three consecutive decreasing terms. The complement is <math>|A \cup B|=|A|+|B|-|A \cap B|</math>. | ||
+ | |||
+ | First, we calculate <math>|A|</math>. Let <math>S_i</math> be the set of permutations in which <math>(a_i, a_{i+1}, a_{i+2})</math> is increasing for <math>i=1,2,3</math>. We have <cmath>|A|=|S_1 \cup S_2 \cup S_3|=|S_1|+|S_2|+|S_3|-|S_1 \cap S_2|-|S_2 \cap S_3|-|S_3 \cap S_1|+|S_1 \cap S_2 \cap S_3|.</cmath> | ||
+ | |||
+ | Since there are <math>\binom{5}{3}</math> ways to pick <math>(a_1, a_2, a_3)</math> (there's only one way to arrange them in increasing order) and <math>2!</math> ways to order <math>a_4, a_5</math>, <cmath>|S_1|=\binom{5}{3} \cdot 2!=20.</cmath> By symmetry, we find <math>|S_2|=|S_3|=20</math>. | ||
+ | |||
+ | Since we require <math>a_1<a_2<a_3<a_4</math> and there are <math>\binom{5}{4}</math> ways to pick the numbers (again, only one way to arrange them in increasing order), <cmath>|S_1 \cap S_2|=\binom{5}{4} \cdot 1!=5.</cmath> By symmetry, <math>|S_2 \cap S_3|=5</math>. | ||
+ | |||
+ | Notice that <math>S_3 \cap S_1=S_1 \cap S_2 \cap S_3</math> since both translate to <math>a_1<a_2<a_3<a_4<a_5</math>, so we get <cmath>|A|=20+20+20-5-5-|S_3 \cap S_1|+|S_1\cap S_3|=60-10=50.</cmath> By symmetry, <math>|B|=50</math>, and it remains to compute <math>|A\cap B|</math>. | ||
+ | |||
+ | We have two cases, either <math>a_1<a_2<a_3>a_4>a_5</math> or <math>a_1>a_2>a_3<a_4<a_5</math> (it is easy to verify that these are the only ones that work). WLOG consider the first. We must have <math>a_3=5</math> since it's the largest, and for every choice of <math>a_1, a_2</math>, there is exactly one way to arrange them in order and to choose/arrange <math>a_3,a_4</math>. So, there are <math>\binom{4}{2}</math> ways to pick <math>a_1, a_2</math>. Multiplying by 2 gives <cmath>|A\cap B|=2\cdot 6=12 \implies |A \cup B|=50+50-12=88.</cmath> | ||
+ | |||
+ | Since there are <math>5!=120</math> permutations in total, the answer is <math>120-88=\boxed{\textbf{(D)}~32}</math>. | ||
+ | |||
+ | ~bomberdoodles | ||
+ | |||
+ | == Video Solution by OmegaLearn (Using PIE - Principle of Inclusion Exclusion) == | ||
+ | https://youtu.be/Fqak5BArpdc | ||
+ | |||
+ | ~ pi_is_3.14 | ||
+ | |||
+ | ==Video Solution by Power of Logic (Using Idea of Symmetrically Counting)== | ||
+ | https://youtu.be/ZLQ8KYtai_M | ||
+ | |||
+ | ==Video Solution by TheBeautyofMath== | ||
+ | https://youtu.be/UZZoSYHBJlI | ||
+ | |||
+ | ~IceMatrix | ||
+ | |||
+ | ==See Also== | ||
+ | {{AMC10 box|year=2021|ab=A|num-b=19|num-a=21}} | ||
+ | {{MAA Notice}} |
Latest revision as of 15:19, 3 November 2024
Contents
- 1 Problem
- 2 Solution 1 (Enumeration)
- 3 Solution 2 (Enumeration by Symmetry)
- 4 Solution 3 (Casework on the Consecutive Digits)
- 5 Solution 4 (Casework Similar to Solution 3)
- 6 Solution 5 (Casework on the Position of 5)
- 7 Solution 6 (Overcounting)
- 8 Solution 7 (Using a Table)
- 9 Solution 8 (Symmetry)
- 10 Solution 9 (PIE-NO casework)
- 11 Video Solution by OmegaLearn (Using PIE - Principle of Inclusion Exclusion)
- 12 Video Solution by Power of Logic (Using Idea of Symmetrically Counting)
- 13 Video Solution by TheBeautyofMath
- 14 See Also
Problem
In how many ways can the sequence be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing?
Solution 1 (Enumeration)
We write out the cases, then filter out the valid ones:
We count these out and get permutations that work.
~contactbibliophile
Solution 2 (Enumeration by Symmetry)
By symmetry with respect to note that is a valid sequence if and only if is a valid sequence. We enumerate the valid sequences that start with or as shown below:
There are valid sequences that start with or By symmetry, there are valid sequences that start with or So, the answer is
~MRENTHUSIASM (inspired by Snowfan)
Solution 3 (Casework on the Consecutive Digits)
Reading the terms from left to right, we have two cases for the consecutive digits, where means increase and means decrease:
For note that for the second and fourth terms, one term must be and the other term must be either or We have four subcases:
For the first two blanks must be and in some order, and the last blank must be So, we get possibilities. Similarly, also has possibilities.
For there are no restrictions for the numbers and So, we get possibilities. Similarly, also has possibilities.
Together, has possibilities. By symmetry, also has possibilities.
Finally, the answer is
Remark
This problem is somewhat similar to 2004 AIME I Problem 6.
~MRENTHUSIASM
Solution 4 (Casework Similar to Solution 3)
Like Solution 3, we have two cases. Due to symmetry, we just need to count one of the cases. For the purpose of this solution, we will be doing . Instead of starting with 5, we start with 1.
There are two ways to place it:
_1_ _ _
_ _ _1_
Now we place 2, it can either be next to 1 and on the outside, or is place in where 1 would go in the other case. So now we have another two "sub case":
_1_2_(case 1)
21_ _ _(case 2)
There are 3! ways to arrange the rest for case 1, since there is no restriction.
For case 2, we need to consider how many ways to arrange 3,4,5 in a a>b<c fashion. It should seem pretty obvious that b has to be 3, so there will be 2! way to put 4 and 5.
Now we find our result, times 2 for symmetry, times 2 for placement of 1 and times (3!+2!) for the two different cases for placement of 2. This give us .
~~Xhte
Solution 5 (Casework on the Position of 5)
We only need to find the # of rearrangements when 5 is the 4th digit and 5th digit. Find the total, and multiply by 2. Then we can get the answer by adding the case when 5 is the third digit.
Case : 5 is the 5th digit. __ __ __ __ 5
Then can only be either 1st digit or the 3rd digit.
4 __ __ __ 5, then the only way is that is the 3rd digit, so it can be either or , give us results.
__ __ 4 __ 5, then the 1st digit must be or , gives us way, and gives us ways. (Can't be because the first digit would increasing). Therefore, in the middle and in the last would result in ways.
Case : is the fourth digit. __ __ __ 5 __
Then the last digit can be all of the 4 numbers , , , and . Let's say if the last digit is , then the 2nd digit would be the largest for the remaining digits to prevent increasing order or decreasing order. Then the remaining two are interchangeable, give us ways. All of the can work, so case would result in ways.
Case : is in the middle. __ __ 5 __ __
Then there are only two cases: 1. , then 4 and 3 are interchangeable, which results in . Or it can be , then 4 and 2 are interchangeable, but it can not be , so there can only be 2 possible ways: , .
Therefore, case 3 would result in ways.
, so the total ways for case 1 and case 2 with both increasing and decreasing would be
Finally, we have
~Michael595
Solution 6 (Overcounting)
First, we list the triples that are invalid:
543, 542, 541, 532, 531, 521, 432, 431, 321
By symmetry, there are the same amount of increasing triplets as there are decreasing ones. This yields 18 invalid 3 digit permutations in total.
Suppose the triplet is ABC and the other 2 digits are X and Y. We then have 3 ways to arrange a triplet with 2 other digits.
ABCXY, XABCY, XYABC
X and Y can be arranged 2 ways.
XY, YX
This produces 18*3*2=108 permutations of invalid results. We have 5! ways to arrange 5 numbers so 120-108=12.
Now, we must account for overcounting. For example, when 543 is counted, it only registers as one invalid permutation but in fact, it is 3 whole invalid permutations. We then complete this for the rest of the list:
54321 has 543, 432, and 321
54213 has 542 and 421
54123 has 541 and 123
53214 has 532 and 321
53124 has 531 and 124
52134 has 521 and 134
43215 has 432 and 321
43125 has 431 and 125
32145 has 321 and 145
This produces 19 values that we have overcounted but this value itself is also overcounted. We already counted 9 of the terms. This brings the final value of overcounted terms down to 10 for the decreasing triplets. By symmetry, 10 increasing triplets were overcounted.
This gives us
~ Lukiebear
Solution 7 (Using a Table)
It is easier to consider the complement of the desired cases, so try to find the cases that DO have three integers in increasing order. First, write down the sets of three numbers that feature the numbers in increasing order. They are . Each of these can be in three positions: the three are in the front with two more numbers in the back, the three are in the middle with two on each side, and two in the front and the set of three in the back. Now, count the number of combinations of numbers that each of the set of three can form that have not been previously accounted for. Also, if the set features both increasing and decreasing, then do not count it because we will separately count them.
This gives us a total of possibilities. These account for the possibilities with ONLY increasing numbers. Mirror over to the other side to get the set of combinations with either at least set of increasing numbers in a row or only at least set of decreasing numbers, but not both. We can count the ones with both separately. . Total of .
. This is the compliment. There are a total of . .
Thus, the answer is .
~Evan Liu ~Marshall_Huang (changes to LaTex and one spelling error)
Solution 8 (Symmetry)
First, note that there is a symmetry from to as follows: . Now, consider the placement of 5 in the case. Clearly, 5 is the maximum value, so it must be placed in the 2nd position or the 4th position, but we also have symmetry . We will find the number of sequences with 5 in the second position by using casework on the position of the 4.
Case 1:
4 5 __ __ __: 3 is the maximum value, so it must go into the 4th position, leaving us 2 ways to fill in 1 and 2.
Case 2:
__ 5 __ 4 __: 1, 2, and 3 are all less than 4 or 5, so they can be filled in any manner: 3! = 6.
Overall, we have 8 ways to fill in the sequences. By our two types of symmetry, there are .
~alligator112
Solution 9 (PIE-NO casework)
We use complementary counting.
Let be the set of all permutations of in which there exists at least one set of three consecutive increasing terms, and let be the set of all permutations of in which there exists at least one set of three consecutive decreasing terms. The complement is .
First, we calculate . Let be the set of permutations in which is increasing for . We have
Since there are ways to pick (there's only one way to arrange them in increasing order) and ways to order , By symmetry, we find .
Since we require and there are ways to pick the numbers (again, only one way to arrange them in increasing order), By symmetry, .
Notice that since both translate to , so we get By symmetry, , and it remains to compute .
We have two cases, either or (it is easy to verify that these are the only ones that work). WLOG consider the first. We must have since it's the largest, and for every choice of , there is exactly one way to arrange them in order and to choose/arrange . So, there are ways to pick . Multiplying by 2 gives
Since there are permutations in total, the answer is .
~bomberdoodles
Video Solution by OmegaLearn (Using PIE - Principle of Inclusion Exclusion)
~ pi_is_3.14
Video Solution by Power of Logic (Using Idea of Symmetrically Counting)
Video Solution by TheBeautyofMath
~IceMatrix
See Also
2021 AMC 10A (Problems • Answer Key • Resources) | ||
Preceded by Problem 19 |
Followed by Problem 21 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
All AMC 10 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.