Difference between revisions of "2019 AMC 10B Problems/Problem 25"
m (→Solution 3 (casework and blocks)) |
(→Video Solution by OmegaLearn) |
||
(54 intermediate revisions by 22 users not shown) | |||
Line 1: | Line 1: | ||
− | {{duplicate|[[2019 AMC 10B Problems|2019 AMC 10B #25]] and [[2019 AMC 12B Problems|2019 AMC 12B #23]]}} | + | {{duplicate|[[2019 AMC 10B Problems#Problem 25|2019 AMC 10B #25]] and [[2019 AMC 12B Problems#Problem 23|2019 AMC 12B #23]]}} |
==Problem== | ==Problem== | ||
Line 7: | Line 7: | ||
<math>\textbf{(A) }55\qquad\textbf{(B) }60\qquad\textbf{(C) }65\qquad\textbf{(D) }70\qquad\textbf{(E) }75</math> | <math>\textbf{(A) }55\qquad\textbf{(B) }60\qquad\textbf{(C) }65\qquad\textbf{(D) }70\qquad\textbf{(E) }75</math> | ||
− | ==Solution 1 ( | + | ==Solution 1 (Recursion)== |
− | + | Let <math>f(n)</math> be the number of valid sequences of length <math>n</math> (satisfying the conditions given in the problem). | |
− | |||
− | + | We know our valid sequence must end in a <math>0</math>. Then, since we cannot have two consecutive <math>0</math>s, it must end in a <math>10</math>. Now, we only have two cases: it ends with <math>010</math>, or it ends with <math>110</math> which is equivalent to <math>0110</math>. Thus, our sequence must be of the forms <math>0\ldots010</math> or <math>0\ldots0110</math>. In the first case, the first <math>n-2</math> digits are equivalent to a valid sequence of length <math>n-2</math>. In the second, the first <math>n-3</math> digits are equivalent to a valid sequence of length <math>n-3</math>. Therefore, it must be the case that <math>f(n) = f(n-3) + f(n-2)</math>, with <math>n \ge 3</math> (because otherwise, the sequence would contain only 0s and this is not allowed due to the given conditions). | |
− | It is easy to find <math>f( | + | It is easy to find <math>f(3) = 1</math> since the only possible valid sequence is <math>010</math>. <math>f(4)=1</math> since the only possible valid sequence is <math>0110</math>. <math>f(5)=1</math> since the only possible valid sequence is <math>01010</math>. |
+ | |||
+ | The recursive sequence is then as follows: | ||
+ | |||
+ | <cmath>f(3)=1</cmath> | ||
+ | <cmath>f(4)=1</cmath> | ||
+ | <cmath>f(5) = 1</cmath> | ||
+ | <cmath>f(6) = 1 + 1 = 2</cmath> | ||
+ | <cmath>f(7) = 1 + 1 = 2</cmath> | ||
+ | <cmath>f(8) = 1 + 2 = 3</cmath> | ||
+ | <cmath>f(9) = 2 + 2 = 4</cmath> | ||
+ | <cmath>f(10) = 2 + 3 = 5</cmath> | ||
+ | <cmath>f(11) = 3 + 4 = 7</cmath> | ||
+ | <cmath>f(12) = 4 + 5 = 9</cmath> | ||
+ | <cmath>f(13) = 5 + 7 = 12</cmath> | ||
+ | <cmath>f(14) = 7 + 9 = 16</cmath> | ||
+ | <cmath>f(15) = 9 + 12 = 21</cmath> | ||
+ | <cmath>f(16) = 12 + 16 = 28</cmath> | ||
+ | <cmath>f(17) = 16 + 21 = 37</cmath> | ||
+ | <cmath>f(18) = 21 + 28 = 49</cmath> | ||
+ | <cmath>f(19) = 28 + 37 = 65</cmath> | ||
+ | |||
+ | So, our answer is <math>\boxed{\text{\bf{(C)} } 65}</math>. | ||
+ | |||
+ | |||
+ | '''Contributors:''' | ||
+ | |||
+ | ~Original Author | ||
+ | |||
+ | ~solasky | ||
+ | |||
+ | ~BakedPotato66 | ||
+ | |||
+ | ~[https://artofproblemsolving.com/wiki/index.php/User:Crazyvideogamez CrazyVideoGamez] | ||
==Solution 2 (casework)== | ==Solution 2 (casework)== | ||
Line 43: | Line 75: | ||
~Equinox8 | ~Equinox8 | ||
+ | |||
+ | ==Solution 4 (similar to #3)== | ||
+ | Any valid sequence must start with a <math>0</math>. We can then think of constructing a sequence as adding groups of terms to this <math>0</math>, each ending in <math>0</math>. (This is always possible because every valid string ends in <math>0</math>.) For example, we can represent the string <math>01011010110110</math> as: <math>0-10-110-10-110-110</math>. | ||
+ | To not have any consecutive 0s, we must have at least one <math>1</math> before the next <math>0</math>. However, we cannot have three or more <math>1</math>s before the next <math>0</math> because we cannot have three consecutive <math>1</math>s. Consequently, we can only have one or two <math>1</math>s. | ||
+ | |||
+ | So we can have the groups: <math>10</math> and <math>110</math>. | ||
+ | |||
+ | After the initial <math>0</math>, we have <math>18</math> digits left to fill in the string. Let the number of <math>10</math> blocks be <math>x</math>, and <math>110</math> be <math>y</math>. Then <math>x</math> and <math>y</math> must satisfy <math>2x+3y=18</math>. We recognize this as a Diophantine equation. Taking <math>\pmod{2}</math> yields <math>y=0 \pmod{2}</math>. Since <math>x</math> and <math>y</math> must both be nonnegative, we get the solutions <math>(9, 0)</math>, <math>(6, 2)</math>, <math>(3, 4)</math>, and <math>(0, 6)</math>. We now handle each of these cases separately. | ||
+ | |||
+ | <math>(9, 0)</math>: Only one arrangement, namely all <math>10</math>s. | ||
+ | |||
+ | <math>(6, 2)</math>: We have 6 groups of <math>11</math>, and <math>2</math> groups of <math>110</math>. This has <math>\binom{6+2}{2}=28</math> cases. | ||
+ | |||
+ | <math>(3, 4)</math>: This means we have 3 groups of <math>10</math>, and 4 groups of <math>110</math>. This has <math>\binom{3+4}{3}=35</math> cases. | ||
+ | |||
+ | <math>(0, 6)</math>: Only one arrangement, namely all <math>110</math>. | ||
+ | |||
+ | Adding these, we have <math>1+28+35+1=65 \longrightarrow \boxed{(C) 65}</math>. | ||
+ | ~Math4Life2020 | ||
+ | |||
+ | ~edited by alpha_2 for spelling and and typos | ||
+ | |||
+ | ==Solution 5 (Constructive Counting)== | ||
+ | Suppose the number of <math>0</math>s is <math>n</math>. We can construct the sequence in two steps: | ||
+ | |||
+ | Step 1: put <math>n-1</math> of <math>1</math>s between the <math>0</math>s; | ||
+ | |||
+ | Step 2: put the rest <math>19-n-(n-1)=20-2n</math> of <math>1</math>s in the <math>n-1</math> spots where there is a <math>1</math>. There are <math>\binom{n-1}{20-2n}</math> ways of doing this. | ||
+ | |||
+ | Now we find the possible values of <math>n</math>: | ||
+ | |||
+ | First of all <math>n+(n-1) \leq 19 \Rightarrow n\leq 10</math> (otherwise there will be two consecutive <math>0</math>s); | ||
+ | |||
+ | And secondly <math>20-2n \leq n-1\Rightarrow n\geq 7</math> (otherwise there will be three consecutive <math>1</math>s). | ||
+ | |||
+ | Therefore the answer is | ||
+ | <cmath> | ||
+ | \sum_{n=7}^{10} \binom{n-1}{20-2n} = \binom{6}{6} + \binom{7}{4} + \binom{8}{2} + \binom{9}{0} = \boxed{\textbf{(C) }65}. | ||
+ | </cmath> | ||
+ | |||
+ | ~ aops | ||
+ | |||
+ | == Solution 6 (Recursion)== | ||
+ | |||
+ | For a valid sequence of length <math>n</math>, the sequence must be in the form of <math>01xx...xx10</math>. By removing the <math>01</math> at the start of the sequence and the <math>10</math> at the end of the sequence, there are <math>n-4</math> bits left. The <math>n-4</math> bits left can be in the form of: | ||
+ | <math>0yy...yy0</math>, the whole <math>(n-4)</math> bits are valid sequence, which is <math>f(n-4)</math> | ||
+ | <math>0yy...y01</math>, the <math>(n-5)</math> bits before the last <math>1</math> are valid sequence, which is <math>f(n-5)</math> | ||
+ | <math>10y...yy0</math>, the <math>(n-5)</math> bits after the first <math>1</math> are valid sequence, which is <math>f(n-5)</math> | ||
+ | <math>10y...y01</math>, the <math>(n-6)</math> bits between the first and last <math>1</math> are valid sequence, which is <math>f(n-6)</math> | ||
+ | |||
+ | So, <math>f(n) = f(n-4) + 2f(n-5) + f(n-6)</math> | ||
+ | |||
+ | We will calculate <math>f(19)</math> by [https://en.wikipedia.org/wiki/Dynamic_programming Dynamic Programming]. | ||
+ | |||
+ | <math>f(3) = 1</math> | ||
+ | |||
+ | <math>f(4) = 1</math> | ||
+ | |||
+ | <math>f(5) = 1</math> | ||
+ | |||
+ | <math>f(6) = 2</math> | ||
+ | |||
+ | <math>f(7) = 2</math> | ||
+ | |||
+ | <math>f(8) = 3</math> | ||
+ | |||
+ | <math>f(9) = f(5) + 2 \cdot f(4) + f(3) = 1 + 2 \cdot 1 + 1 = 4</math> | ||
+ | |||
+ | <math>f(10) = f(6) + 2 \cdot f(5) + f(4) = 2 + 2 \cdot 1 + 1 = 5</math> | ||
+ | |||
+ | <math>f(11) = f(7) + 2 \cdot f(6) + f(5) = 2 + 2 \cdot 1 + 1 = 7</math> | ||
+ | |||
+ | <math>f(12) = f(8) + 2 \cdot f(7) + f(6) = 3 + 2 \cdot 2 + 2 = 9</math> | ||
+ | |||
+ | <math>f(13) = f(9) + 2 \cdot f(8) + f(7) = 4 + 2 \cdot 3 + 2 = 12</math> | ||
+ | |||
+ | <math>f(14) = f(10) + 2 \cdot f(9) + f(8) = 5 + 2 \cdot 4 + 3 = 16</math> | ||
+ | |||
+ | <math>f(15) = f(11) + 2 \cdot f(10) + f(9) = 7 + 2 \cdot 5 + 4 = 21</math> | ||
+ | |||
+ | <math>f(16) = f(12) + 2 \cdot f(11) + f(10) = 9 + 2 \cdot 7 + 5 = 28</math> | ||
+ | |||
+ | <math>f(17) = f(13) + 2 \cdot f(12) + f(11) = 12 + 2 \cdot 9 + 7 = 37</math> | ||
+ | |||
+ | <math>f(18) = f(14) + 2 \cdot f(13) + f(12) = 16 + 2 \cdot 12 + 9 = 49</math> | ||
+ | |||
+ | <math>f(19) = f(15) + 2 \cdot f(14) + f(13) = 21 + 2 \cdot 16 + 12 = \boxed{\text{\bf{(C)} } 65}</math> | ||
+ | |||
+ | We can further prove <math>f(n) = f(n-4) + 2f(n-5) + f(n-6)</math> is equivalent to <math>f(n) = f(n-2) + f(n-3)</math> | ||
+ | |||
+ | Let <math>k(n) = f(n-2) + f(n-3)</math> | ||
+ | |||
+ | <math>k(n-2) = f(n-4) + f(n-5)</math> | ||
+ | |||
+ | <math>k(n-3) = f(n-5) + f(n-6)</math> | ||
+ | |||
+ | <math>k(n-2)+ k(n-3) = f(n-4) + 2f(n-5) + f(n-6) = f(n)</math> | ||
+ | |||
+ | <math>f(n) = k(n-2)+ k(n-3)</math> | ||
+ | |||
+ | <math>f(n-2) = k(n-4)+ k(n-5)</math> | ||
+ | |||
+ | <math>f(n-3) = k(n-5)+ k(n-6)</math> | ||
+ | |||
+ | <math>k(n) = f(n-2) + f(n-3) = k(n-4)+ k(n-5) + k(n-5)+ k(n-6) = k(n-4) + 2k(n-5) + k(n-6)</math> | ||
+ | |||
+ | So <math>k(n)</math> is the same as <math>f(n)</math>. | ||
+ | |||
+ | ~[https://artofproblemsolving.com/wiki/index.php/User:Isabelchen isabelchen] | ||
+ | |||
+ | == Solution 7 (Quick Solution by Estimating) == | ||
+ | |||
+ | Using the tree diagram, you quickly notice that your answer must be very close to a power of <math>2</math> due to the splitting of the tree branches in a tree diagram. <math>2^6</math> is <math>64</math>, which is very close to <math>65</math>, thus giving our answer of <math>\boxed{\textbf{(C) }65}</math>. | ||
+ | |||
+ | ~MichaeLLin16 ~Minor Edit and Moving by [https://artofproblemsolving.com/wiki/index.php/User:HappySharks HappySharks] | ||
+ | |||
+ | |||
+ | == Solution 8 (Sequence Dividing and Path Counting) == | ||
+ | |||
+ | You can split the sequence into <math>0</math> and <math>6</math> strings of three numbers, which can only be <math>010</math>,<math>011</math>,<math>110</math>,<math>101</math>, labelled as A,B,C,D respectively. For example, <math>0101....010</math> is labelled <math>0DADADA</math>. This can also be stated as 0, <math>D_{1}, A_{2}, D_{3},</math> etc. The problem is equivalent to find the number of such sequences. For each string, A can be followed by C and D, B can be followed by A and B, C can be followed by C and D, D can be followed by A,B, and D. If we define <math>n(A_{i})</math> as number of possible sequences that ends with string A at the <math>i</math>th spot (thus be <math>3i+1</math> numbers long), we may find relationship between these numbers by noting that, for the <math>i+1</math> th string, with <math>i \geq 1</math> | ||
+ | <math>n(A_{i+1}) = n(B_{i+1}) = n(B_{i}) + n(D_{i}), n(C_{i+1}) = n(A_{i}) + n(C_{i})</math> | ||
+ | <math>n(D_{i+1}) = n(A_{i}) + n(C_{i}) + n(D_{i})</math>. | ||
+ | Since the first number of the sequence must be zero, we must start with <math>n(A_1) = n(B_1) = 0, n(C_1) = n(D_1) = 1</math>. Using the above steps to evolve the situation from i = 1 to i = 6, we get <math>n(A_{6}) = 37, n(B_{6}) = 37, n(C_{6}) = 28, n(D_{6}) = 49</math>. | ||
+ | Since the sequence ends with 0, we only need to sum <math>n(A_{6})</math> and <math>n(C_{6})</math>, which yields <math>37+28=65</math>. <math>\boxed{\textbf{(C) }65}</math> | ||
+ | |||
+ | Solution by ~Cc2010cc2015 | ||
+ | |||
+ | minor edit by ~CLA | ||
+ | |||
+ | == Video Solution by OmegaLearn == | ||
+ | https://youtu.be/WpSpnx8PPnc?t=94 | ||
+ | |||
+ | ~pi_is_3.14 | ||
==Video Solution== | ==Video Solution== | ||
− | + | https://youtu.be/VamT49PjmdI | |
==See Also== | ==See Also== | ||
Line 51: | Line 216: | ||
{{AMC12 box|year=2019|ab=B|num-b=22|num-a=24}} | {{AMC12 box|year=2019|ab=B|num-b=22|num-a=24}} | ||
{{MAA Notice}} | {{MAA Notice}} | ||
+ | |||
+ | [[Category: Intermediate Combinatorics Problems]] |
Latest revision as of 19:00, 14 November 2024
- The following problem is from both the 2019 AMC 10B #25 and 2019 AMC 12B #23, so both problems redirect to this page.
Contents
- 1 Problem
- 2 Solution 1 (Recursion)
- 3 Solution 2 (casework)
- 4 Solution 3 (casework and blocks)
- 5 Solution 4 (similar to #3)
- 6 Solution 5 (Constructive Counting)
- 7 Solution 6 (Recursion)
- 8 Solution 7 (Quick Solution by Estimating)
- 9 Solution 8 (Sequence Dividing and Path Counting)
- 10 Video Solution by OmegaLearn
- 11 Video Solution
- 12 See Also
Problem
How many sequences of s and s of length are there that begin with a , end with a , contain no two consecutive s, and contain no three consecutive s?
Solution 1 (Recursion)
Let be the number of valid sequences of length (satisfying the conditions given in the problem).
We know our valid sequence must end in a . Then, since we cannot have two consecutive s, it must end in a . Now, we only have two cases: it ends with , or it ends with which is equivalent to . Thus, our sequence must be of the forms or . In the first case, the first digits are equivalent to a valid sequence of length . In the second, the first digits are equivalent to a valid sequence of length . Therefore, it must be the case that , with (because otherwise, the sequence would contain only 0s and this is not allowed due to the given conditions).
It is easy to find since the only possible valid sequence is . since the only possible valid sequence is . since the only possible valid sequence is .
The recursive sequence is then as follows:
So, our answer is .
Contributors:
~Original Author
~solasky
~BakedPotato66
Solution 2 (casework)
After any particular , the next in the sequence must appear exactly or positions down the line. In this case, we start at position and end at position , i.e. we move a total of positions down the line. Therefore, we must add a series of s and s to get . There are a number of ways to do this:
Case 1: nine s - there is only way to arrange them.
Case 2: two s and six s - there are ways to arrange them.
Case 3: four s and three s - there are ways to arrange them.
Case 4: six s - there is only way to arrange them.
Summing the four cases gives .
Solution 3 (casework and blocks)
We can simplify the original problem into a problem where there are binary characters with zeros at the beginning and the end. Then, we know that we cannot have a block of 2 zeroes and a block of 3 ones. Thus, our only options are a block of s, s, and s. Now, we use casework:
Case 1: Alternating 1s and 0s. There is simply 1 way to do this: . Now, we note that there cannot be only one block of in the entire sequence, as there must be zeroes at both ends and if we only include 1 block, of s this cannot be satisfied. This is true for all odd numbers of blocks.
Case 2: There are 2 blocks. Using the zeroes in the sequence as dividers, we have a sample as . We know there are 8 places for s, which will be filled by s if the s don't fill them. This is ways.
Case 3: Four blocks arranged. Using the same logic as Case 2, we have ways to arrange four blocks.
Case 4: No single blocks, only blocks. There is simply one case for this, which is .
Adding these four cases, we have as our final answer.
~Equinox8
Solution 4 (similar to #3)
Any valid sequence must start with a . We can then think of constructing a sequence as adding groups of terms to this , each ending in . (This is always possible because every valid string ends in .) For example, we can represent the string as: . To not have any consecutive 0s, we must have at least one before the next . However, we cannot have three or more s before the next because we cannot have three consecutive s. Consequently, we can only have one or two s.
So we can have the groups: and .
After the initial , we have digits left to fill in the string. Let the number of blocks be , and be . Then and must satisfy . We recognize this as a Diophantine equation. Taking yields . Since and must both be nonnegative, we get the solutions , , , and . We now handle each of these cases separately.
: Only one arrangement, namely all s.
: We have 6 groups of , and groups of . This has cases.
: This means we have 3 groups of , and 4 groups of . This has cases.
: Only one arrangement, namely all .
Adding these, we have . ~Math4Life2020
~edited by alpha_2 for spelling and and typos
Solution 5 (Constructive Counting)
Suppose the number of s is . We can construct the sequence in two steps:
Step 1: put of s between the s;
Step 2: put the rest of s in the spots where there is a . There are ways of doing this.
Now we find the possible values of :
First of all (otherwise there will be two consecutive s);
And secondly (otherwise there will be three consecutive s).
Therefore the answer is
~ aops
Solution 6 (Recursion)
For a valid sequence of length , the sequence must be in the form of . By removing the at the start of the sequence and the at the end of the sequence, there are bits left. The bits left can be in the form of:
, the whole bits are valid sequence, which is , the bits before the last are valid sequence, which is , the bits after the first are valid sequence, which is , the bits between the first and last are valid sequence, which is
So,
We will calculate by Dynamic Programming.
We can further prove is equivalent to
Let
So is the same as .
Solution 7 (Quick Solution by Estimating)
Using the tree diagram, you quickly notice that your answer must be very close to a power of due to the splitting of the tree branches in a tree diagram. is , which is very close to , thus giving our answer of .
~MichaeLLin16 ~Minor Edit and Moving by HappySharks
Solution 8 (Sequence Dividing and Path Counting)
You can split the sequence into and strings of three numbers, which can only be ,,,, labelled as A,B,C,D respectively. For example, is labelled . This can also be stated as 0, etc. The problem is equivalent to find the number of such sequences. For each string, A can be followed by C and D, B can be followed by A and B, C can be followed by C and D, D can be followed by A,B, and D. If we define as number of possible sequences that ends with string A at the th spot (thus be numbers long), we may find relationship between these numbers by noting that, for the th string, with
.
Since the first number of the sequence must be zero, we must start with . Using the above steps to evolve the situation from i = 1 to i = 6, we get . Since the sequence ends with 0, we only need to sum and , which yields .
Solution by ~Cc2010cc2015
minor edit by ~CLA
Video Solution by OmegaLearn
https://youtu.be/WpSpnx8PPnc?t=94
~pi_is_3.14
Video Solution
See Also
2019 AMC 10B (Problems • Answer Key • Resources) | ||
Preceded by Problem 24 |
Followed by Last Problem | |
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 |
2019 AMC 12B (Problems • Answer Key • Resources) | |
Preceded by Problem 22 |
Followed by Problem 24 |
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 12 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.