Difference between revisions of "2019 AMC 10B Problems/Problem 25"
Isabelchen (talk | contribs) (→Solution 6 (Recursion)) |
m (→Solution 8 (Sequence Dividing and Path Counting)) |
||
(33 intermediate revisions by 11 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 8: | Line 8: | ||
==Solution 1 (Recursion)== | ==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). | |
− | Let <math>f(n)</math> be the number of valid | ||
− | Then we | + | 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(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>. | 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>. | ||
Line 47: | Line 44: | ||
~BakedPotato66 | ~BakedPotato66 | ||
+ | |||
+ | ~[https://artofproblemsolving.com/wiki/index.php/User:Crazyvideogamez CrazyVideoGamez] | ||
==Solution 2 (casework)== | ==Solution 2 (casework)== | ||
Line 93: | Line 92: | ||
<math>(0, 6)</math>: Only one arrangement, namely all <math>110</math>. | <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)}</math>. | + | Adding these, we have <math>1+28+35+1=65 \longrightarrow \boxed{(C) 65}</math>. |
~Math4Life2020 | ~Math4Life2020 | ||
Line 116: | Line 115: | ||
</cmath> | </cmath> | ||
− | ~ | + | ~ aops |
== Solution 6 (Recursion)== | == 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: | 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>, which is <math>f(n-4)</math> | + | <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>, which is <math>f(n-5)</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>, 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>, which is <math>f(n-6)</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> | So, <math>f(n) = f(n-4) + 2f(n-5) + f(n-6)</math> | ||
− | We will calculate <math>f(19)</math> by | + | We will calculate <math>f(19)</math> by [https://en.wikipedia.org/wiki/Dynamic_programming Dynamic Programming]. |
<math>f(3) = 1</math> | <math>f(3) = 1</math> | ||
Line 184: | Line 183: | ||
So <math>k(n)</math> is the same as <math>f(n)</math>. | So <math>k(n)</math> is the same as <math>f(n)</math>. | ||
− | ~isabelchen | + | ~[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 193: | 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 17:42, 25 August 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.