Difference between revisions of "2015 AIME II Problems/Problem 12"
m (Embedded solution 3 with solution 2; "solution" 3 was not a solution) |
m (→Solution 1) |
||
Line 27: | Line 27: | ||
For <math>n=3</math>: <math>a_3</math> and <math>b_3</math> both equal <math>2</math>, <math>c_3=4</math>. With some simple math, we have: | For <math>n=3</math>: <math>a_3</math> and <math>b_3</math> both equal <math>2</math>, <math>c_3=4</math>. With some simple math, we have: | ||
<math>a_{10}=88</math>, <math>b_{10}=162</math>, and <math>c_{10}=298</math>. | <math>a_{10}=88</math>, <math>b_{10}=162</math>, and <math>c_{10}=298</math>. | ||
− | Summing the three up we have our solution: <math>88+162+298=548</math>. | + | Summing the three up we have our solution: <math>88+162+298=\boxed{548}</math>. |
==Solution 2== | ==Solution 2== |
Revision as of 23:58, 27 February 2017
Contents
Problem
There are possible 10-letter strings in which each letter is either an A or a B. Find the number of such strings that do not have more than 3 adjacent letters that are identical.
Solution 1
The solution is a simple recursion:
We have three cases for the ending of a string: three in a row, two in a row, and a single:
...AAA ...BAA ...BBA
For case , we could only add a B to the end, making it a case . For case , we could add an A or a B to the end, making it a case if you add an A, or a case if you add a B. For case , we could add an A or a B to the end, making it a case or a case .
Let us create three series to represent the number of permutations for each case: , , and representing case , , and respectively.
The series have the following relationship:
; ;
For : and both equal , . With some simple math, we have: , , and . Summing the three up we have our solution: .
Solution 2
This is a recursion problem. Let be the number of valid strings of letters, where the first letter is . Similarly, let be the number of valid strings of letters, where the first letter is .
Note that for all .
Similarly, we have for all .
Here is why: every valid strings of letters where the first letter is must begin with one of the following:
- and the number of valid ways is .
- and the number of valid ways is .
- and there are ways.
We know that , , and . Similarly, we have , , and . We can quickly check our recursion to see if our recursive formula works. By the formula, , and listing out all , we can quickly verify our formula.
Therefore, we have the following:
The total number of valid letter strings is equal to .
Notice that , since , , and . Therefore, we didn't really need to list out both recursion formulas, which could save us some time.
Note
This problem has the same general approach as #22 on the 2015 AMC 12A.
See also
2015 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 11 |
Followed by Problem 13 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.