Difference between revisions of "Mock AIME 3 Pre 2005 Problems/Problem 5"
m (Mock AIME 3 Pre 2005/Problem 5 moved to Mock AIME 3 Pre 2005 Problems/Problem 5: fix) |
(recursive solution) |
||
Line 2: | Line 2: | ||
In Zuminglish, all words consist only of the letters <math>M, O,</math> and <math>P</math>. As in English, <math>O</math> is said to be a vowel and <math>M</math> and <math>P</math> are consonants. A string of <math>M's, O's,</math> and <math>P's</math> is a word in Zuminglish if and only if between any two <math>O's</math> there appear at least two consonants. Let <math>N</math> denote the number of <math>10</math>-letter Zuminglish words. Determine the remainder obtained when <math>N</math> is divided by <math>1000</math>. | In Zuminglish, all words consist only of the letters <math>M, O,</math> and <math>P</math>. As in English, <math>O</math> is said to be a vowel and <math>M</math> and <math>P</math> are consonants. A string of <math>M's, O's,</math> and <math>P's</math> is a word in Zuminglish if and only if between any two <math>O's</math> there appear at least two consonants. Let <math>N</math> denote the number of <math>10</math>-letter Zuminglish words. Determine the remainder obtained when <math>N</math> is divided by <math>1000</math>. | ||
+ | __TOC__ | ||
==Solution== | ==Solution== | ||
− | {{ | + | === Solution 1 (recursive) === |
+ | Let <math>a_n</math> denote the number of <math>n</math>-letter words ending in two constants (<tt>CC</tt>), <math>b_n</math> denote the number of <math>n</math>-letter words ending in a constant followed by a vowel (<tt>CV</tt>), and let <math>c_n</math> denote the number of <math>n</math>-letter words ending in a vowel followed by a constant (<tt>VC</tt> - the only other combination, two vowels, is impossible due to the problem statement). Then, note that: | ||
+ | *We can only form a word of length <math>n+1</math> with <tt>CC</tt> at the end by appending a constant (<math>M,P</math>) to the end of a word of length <math>n</math> that ends in a constant. Thus, we have the [[recursion]] <math>a_{n+1} = 2(a_n + c_n)</math>, as there are two possible constants we can append. | ||
+ | *We can only form a word of length <math>n+1</math> with a <tt>CV</tt> by appending <math>O</math> to the end of a word of length <math>n</math> that ends with <tt>CC</tt>. This is because we cannot append a vowel to <tt>VC</tt>, otherwise we'd have two vowels within <math>2</math> characters of each other. Thus, <math>b_{n+1} = a_n</math>. | ||
+ | *We can only form a word of length <math>n+1</math> with a <tt>VC</tt> by appending a constant to the end of a word of length <math>n</math> that ends with <tt>CV</tt>. Thus, <math>c_{n+1} = 2b_n</math>. | ||
+ | Using those three recursive rules, and that <math>a_2 = 4, b_2 = 2, c_2=2</math>, we can make a table: | ||
+ | <cmath> | ||
+ | \begin{tabular}{|r||r|r|r|} | ||
+ | \hline | ||
+ | &a_n&b_n&c_n \\ | ||
+ | \hline | ||
+ | 2 & 4 & 2 & 2 \\ | ||
+ | 3 & 12 & 4 & 4 \\ | ||
+ | 4 & 32 & 12 & 8 \\ | ||
+ | 5 & 80 & 32 & 24 \\ | ||
+ | 6 & 208 & 80 & 64 \\ | ||
+ | 7 & 544 & 208 & 160 \\ | ||
+ | 8 & 408 & 544 & 416 \\ | ||
+ | 9 & 648 & 408 & 88 \\ | ||
+ | 10 & 472 & 648 & 816 \\ | ||
+ | \hline | ||
+ | \end{tabular} | ||
+ | </cmath> | ||
+ | For simplicity, we used <math>\mod 1000</math>. Thus, the answer is <math>a_{10} + b_{10} + c_{10} \equiv \boxed{936} \pmod{1000}</math>. (the real answer is <math>15936</math>.) | ||
+ | |||
+ | === Solution 2 (combinatorics) === | ||
+ | See [http://www.tjhsst.edu/~tmildorf/math/PracticeAIME3Solutions.pdf solutions pdf]. | ||
==See also== | ==See also== | ||
+ | {{Mock AIME box|year=Pre 2005|n=3|num-b=4|num-a=6|t=18963}} | ||
+ | |||
+ | [[Category:Intermediate Algebra Problems]] |
Revision as of 20:45, 19 June 2008
Problem
In Zuminglish, all words consist only of the letters and . As in English, is said to be a vowel and and are consonants. A string of and is a word in Zuminglish if and only if between any two there appear at least two consonants. Let denote the number of -letter Zuminglish words. Determine the remainder obtained when is divided by .
Solution
Solution 1 (recursive)
Let denote the number of -letter words ending in two constants (CC), denote the number of -letter words ending in a constant followed by a vowel (CV), and let denote the number of -letter words ending in a vowel followed by a constant (VC - the only other combination, two vowels, is impossible due to the problem statement). Then, note that:
- We can only form a word of length with CC at the end by appending a constant () to the end of a word of length that ends in a constant. Thus, we have the recursion , as there are two possible constants we can append.
- We can only form a word of length with a CV by appending to the end of a word of length that ends with CC. This is because we cannot append a vowel to VC, otherwise we'd have two vowels within characters of each other. Thus, .
- We can only form a word of length with a VC by appending a constant to the end of a word of length that ends with CV. Thus, .
Using those three recursive rules, and that , we can make a table:
\[\begin{tabular}{|r||r|r|r|} \hline &a_n&b_n&c_n \\ \hline 2 & 4 & 2 & 2 \\ 3 & 12 & 4 & 4 \\ 4 & 32 & 12 & 8 \\ 5 & 80 & 32 & 24 \\ 6 & 208 & 80 & 64 \\ 7 & 544 & 208 & 160 \\ 8 & 408 & 544 & 416 \\ 9 & 648 & 408 & 88 \\ 10 & 472 & 648 & 816 \\ \hline \end{tabular}\] (Error compiling LaTeX. Unknown error_msg)
For simplicity, we used . Thus, the answer is . (the real answer is .)
Solution 2 (combinatorics)
See solutions pdf.
See also
Mock AIME 3 Pre 2005 (Problems, Source) | ||
Preceded by Problem 4 |
Followed by Problem 6 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 |