Difference between revisions of "Mock AIME 2 Pre 2005 Problems/Problem 14"
(→Solution) |
(→Solution) |
||
Line 9: | Line 9: | ||
Let <math>S(n)</math> be the set of all ordered basic <math>n</math>-tuples <math>(E_1, E_2, ..., E_n)</math> of positive integers such that <math>\sum_{i=1}^{n} E_i = 9.</math> | Let <math>S(n)</math> be the set of all ordered basic <math>n</math>-tuples <math>(E_1, E_2, ..., E_n)</math> of positive integers such that <math>\sum_{i=1}^{n} E_i = 9.</math> | ||
Now, given a member of <math>S(n)</math> <math>S(n, i)</math> (the <math>i</math>th element in <math>S(n)</math>) let <math>P(n, i)</math> be the number of distinct permutations of that said <math>n</math>-tuple, and let <math>D(n, i)</math> be the number of subsets of positive integers in the ordered tuple <math>S(n, i)</math> such that the sum of the elements in that subset is equal to <math>4</math>. For this case we are aiming to find<cmath>2 \sum P(3, i) D(3, i),</cmath>since for each basic <math>n</math>-tuple there are <math>2</math> ways to set up the Elm trees without affecting the <math>n</math>-tuple. We can make a chart here (ignoring the ordered triples with <math>D(i) = 0</math>): | Now, given a member of <math>S(n)</math> <math>S(n, i)</math> (the <math>i</math>th element in <math>S(n)</math>) let <math>P(n, i)</math> be the number of distinct permutations of that said <math>n</math>-tuple, and let <math>D(n, i)</math> be the number of subsets of positive integers in the ordered tuple <math>S(n, i)</math> such that the sum of the elements in that subset is equal to <math>4</math>. For this case we are aiming to find<cmath>2 \sum P(3, i) D(3, i),</cmath>since for each basic <math>n</math>-tuple there are <math>2</math> ways to set up the Elm trees without affecting the <math>n</math>-tuple. We can make a chart here (ignoring the ordered triples with <math>D(i) = 0</math>): | ||
+ | |||
<math>\begin{tabular}{|c|c|c|} \hline | <math>\begin{tabular}{|c|c|c|} \hline | ||
Basic ordered triple & P(i) & D(i) \\ \hline | Basic ordered triple & P(i) & D(i) \\ \hline | ||
Line 15: | Line 16: | ||
(2, 2, 5) & 3 & 1 \\ \hline | (2, 2, 5) & 3 & 1 \\ \hline | ||
(2, 3, 4) & 6 & 1 \\ \hline | (2, 3, 4) & 6 & 1 \\ \hline | ||
− | \end{tabular}</math> Thus, a total of <math>2(6 \cdot 1 + 3 \cdot 2 + 3 \cdot 1 + 6 \cdot 1) = 42</math> ways for this case. | + | \end{tabular}</math> |
+ | |||
+ | Thus, a total of <math>2(6 \cdot 1 + 3 \cdot 2 + 3 \cdot 1 + 6 \cdot 1) = 42</math> ways for this case. | ||
Case 3: four "empty blocks" are offered (this happens when none of the <math>3</math> planted Elm trees are at an end of the row) | Case 3: four "empty blocks" are offered (this happens when none of the <math>3</math> planted Elm trees are at an end of the row) | ||
Note that for this case each basic <math>4</math>-tuple only corresponds to one possible Elm tree placement. Like on Case 2, we can make a chart as follows (again, ignoring the ordered quadruples with <math>D(i) = 0</math>): | Note that for this case each basic <math>4</math>-tuple only corresponds to one possible Elm tree placement. Like on Case 2, we can make a chart as follows (again, ignoring the ordered quadruples with <math>D(i) = 0</math>): | ||
− | \begin{tabular}{|c|c|c|c|} \hline | + | |
+ | <math>\begin{tabular}{|c|c|c|c|} \hline | ||
Basic ordered quadruple & P(i) & D(i) \\ \hline | Basic ordered quadruple & P(i) & D(i) \\ \hline | ||
(1, 1, 2, 5) & 12 & 1 \\ \hline | (1, 1, 2, 5) & 12 & 1 \\ \hline | ||
Line 25: | Line 29: | ||
(1, 2, 3, 3) & 12 & 2 \\ \hline | (1, 2, 3, 3) & 12 & 2 \\ \hline | ||
(2, 2, 2, 3) & 4 & 3 \\ \hline | (2, 2, 2, 3) & 4 & 3 \\ \hline | ||
− | \end{tabular}Thus, we have a total of <math>12(1+3+2+2) + 4\cdot 3 = 108</math> ways for Case 3. | + | \end{tabular}</math> |
+ | |||
+ | Thus, we have a total of <math>12(1+3+2+2) + 4\cdot 3 = 108</math> ways for Case 3. | ||
Adding up our ways for each of the three cases, we obtain a final answer of <math>2 + 42 + 108 = \boxed{152}</math> distinct legal plantings. | Adding up our ways for each of the three cases, we obtain a final answer of <math>2 + 42 + 108 = \boxed{152}</math> distinct legal plantings. | ||
-fidgetboss_4000 | -fidgetboss_4000 |
Revision as of 13:32, 6 January 2021
Problem
Elm trees, Dogwood trees, and Oak trees are to be planted in a line in front of a library such that\begin{align*} i&) \text{ No two Elm trees are next to each other.} \\ ii&) \text{ No Dogwood tree is adjacent to an Oak tree.} \\ iii&) \text{ All of the trees are planted.} \end{align*}How many ways can the trees be situated in this manner?
Solution
We will do casework based on the number of "empty blocks" that are offered after planting only the Elm trees. Label the number of trees that these empty blocks can hold and trivially the sum of all for is . Now, call an -tuple basic if for all We note that for every legal placement of the Elm trees (and the distribution of the values of ), the number of ways to place the Dogwood trees and the Oak trees for the said placement of the Elm trees is simplify the number of distinct subsets such of our aforementioned set such that the sum of the members in is equal to . Case 1: two "empty blocks" are offered (this happens when two of the planted Elm trees are at the two ends of the row) The only basic ordered pair that offers a nonzero number of legal placements of the Dogwood trees is (in which there is only one way to place the Dogwood Trees according to that placement), and there are permutations of , so there are a total of ways for this case. Case 2: three "empty blocks" are offered (this happens when one of the planted Elm trees are at an end of the row) Let be the set of all ordered basic -tuples of positive integers such that Now, given a member of (the th element in ) let be the number of distinct permutations of that said -tuple, and let be the number of subsets of positive integers in the ordered tuple such that the sum of the elements in that subset is equal to . For this case we are aiming to findsince for each basic -tuple there are ways to set up the Elm trees without affecting the -tuple. We can make a chart here (ignoring the ordered triples with ):
Thus, a total of ways for this case. Case 3: four "empty blocks" are offered (this happens when none of the planted Elm trees are at an end of the row) Note that for this case each basic -tuple only corresponds to one possible Elm tree placement. Like on Case 2, we can make a chart as follows (again, ignoring the ordered quadruples with ):
Thus, we have a total of ways for Case 3. Adding up our ways for each of the three cases, we obtain a final answer of distinct legal plantings.
-fidgetboss_4000