Difference between revisions of "2018 AIME II Problems/Problem 15"
(Created page with "==Problem== Find the number of functions <math>f</math> from <math>\{0, 1, 2, 3, 4, 5, 6\}</math> to the integers such that <math>f(0) = 0</math>, <math>f(6) = 12</math>, and...") |
(→Problem) |
||
Line 6: | Line 6: | ||
for all <math>x</math> and <math>y</math> in <math>\{0, 1, 2, 3, 4, 5, 6\}</math>. | for all <math>x</math> and <math>y</math> in <math>\{0, 1, 2, 3, 4, 5, 6\}</math>. | ||
+ | |||
+ | ==Solution== | ||
+ | |||
+ | First, suppose <math>x = y + 1</math>. Then, the inequality becomes <math>1 \leq |f(y + 1) - f(y)| \leq 3</math>. In other words, the (positive) difference between consecutive function values is <math>1</math>, <math>2</math>, or <math>3</math>. Let <math>d_k := f(k) - f(k - 1)</math>. Note that | ||
+ | |||
+ | <math>f(x) - f(y) = \sum_{k=y+1}^{x} d_k.</math> | ||
+ | |||
+ | Thus, <math>\sum_{k=1}^{6} d_k = f(6) - f(0) = 12</math>. Note that at most one value of <math>d_k</math> in <math>\left\{d_1, d_2, d_3, d_4, d_5, d_6\right\}</math> can be negative. This is because the maximum value of <math>d_1 + d_2 + d_3 + d_4 + d_5 + d_6</math> would be <math>3 + 3 + 3 + 3 - 1 - 1 = 10</math> if more than one value of <math>d_k</math> is negative. Plugging <math>x = y + 2</math> into the original inequality yields <math>2 \leq |f(y + 2) - f(y)| \leq 6</math>, which becomes <math>2 \leq \left|d_{y+2} + d_{y+1}\right| \leq 6</math>. The only way for <math>d_{y+2} + d_{y+1}</math> to be negative while satisfying this inequality is for <math>\left(d_{y+2}, d_{y+1}\right)</math> to equal <math>(1, -3)</math> or <math>(-3, 1)</math>. However, this forces <math>d_1 + d_2 + d_3 + d_4 + d_5 + d_6 \leq 3 + 3 + 3 + 3 + 1 - 3 = 10 < 12</math>, which is disallowed. Hence, we conclude that the following stronger inequality, | ||
+ | |||
+ | <math>2 \leq d_{y + 2} + d_{y + 1} \leq 6,</math> | ||
+ | |||
+ | is always true. We now have two cases of functions to count. For future reference let <math>D</math> be the (ordered) sequence <math>\left\{d_1, d_2, d_3, d_4, d_5, d_6\right\}</math>. | ||
+ | |||
+ | Case 1: There is exactly one instance of <math>d_k = -1</math>. | ||
+ | |||
+ | By the "stronger" inequality above, <math>d_{k-1} = 3</math> if <math>k > 1</math>, and <math>d_{k+1} = 3</math> if <math>k < 6</math>. If <math>2 \leq k \leq 5</math>, then <math>D</math> contains the subsequence <math>\left\{3, -1, 3\right\}</math>, and the other three <math>d</math>-values sum to <math>7</math>, so they are either <math>3</math>, <math>3</math>, and <math>1</math> in some order, or they are <math>2</math>, <math>2</math>, and <math>3</math> in some order. Thus, each <math>k \in \{2, 3, 4, 5\}</math> for which <math>d_k = -1</math> produces <math>6</math> sequences <math>D</math>. If <math>k = 1</math> or <math>k = 6</math>, then <math>D</math> begins with <math>\{-1, 3\}</math> or ends with <math>\{3, -1\}</math>, respectively. Either way, the remaining four <math>d</math>-values sum to <math>10</math>, so they can be any permutation of <math>\{3, 3, 2, 2\}</math> (six permutations) or <math>\{3, 3, 3, 1\}</math> (four permutations). Each of these vaues of <math>k</math> yields <math>6 + 4 = 10</math> sequences, so our total count for Case 1 is <math>4 \cdot 6 + 2 \cdot 10 = 44</math>. | ||
+ | |||
+ | Case 2: All values of <math>d</math> are positive. | ||
+ | |||
+ | Then, <math>D</math> is a permutation of <math>\{3, 3, 3, 1, 1, 1\}</math>, <math>\{3, 3, 2, 2, 1, 1\}</math>, <math>\{3, 2, 2, 2, 2, 1\}</math>, or <math>\{2, 2, 2, 2, 2, 2\}</math>. | ||
+ | The number of ways to permute three <math>3</math>s and three <math>1</math>s is <math>\frac{6!}{3! \cdot 3!} = 20</math>. | ||
+ | The number of ways to permute two <math>3</math>s, two <math>2</math>s, and two <math>1</math>s is <math>\frac{6!}{2! \cdot 2! \cdot 2!} = 90</math>. | ||
+ | The number of ways to permute one <math>3</math>, four <math>2</math>s, and one <math>1</math> is <math>\frac{6!}{1! \cdot 4! \cdot 1!} = 30</math>. | ||
+ | Finally, there is obviously only <math>1</math> way to permute six <math>2</math>s. Our total count for Case 2 is <math>20 + 90 + 30 + 1 = 141</math>. | ||
+ | |||
+ | To complete the justification that all of these <math>44 + 141 = \boxed{185}</math> cases satisfy the original inequality, we leverage the fact that <math>\{f(x)\}_{x=0}^{6}</math> is either monotonically increasing (Case 2) or the union of two monotonically increasing subsequences (Case 1). Consider any monotonically increasing subsequence that starts at <math>x = a</math> and ends at <math>x = b</math>. For <math>a < k \leq b</math>, <math>d_k</math> will be positive, allowing us to remove the absolute value bars from the original inequality: | ||
+ | |||
+ | <math>x - y \leq f(x) - f(y) \leq 3(x - y).</math> | ||
+ | |||
+ | Now, the inequality is transitive; supposing <math>a \leq x_3 < x_2 < x_1 \leq b</math>, if the inequality is satisfied at <math>(x, y) = \left(x_1, x_2\right)</math> and at <math>(x, y) = \left(x_2, x_3\right)</math>, then it is also satisfied at <math>(x, y) = \left(x_1, x_3\right)</math>. If we ever have a decreasing part where <math>f(x + 1) < f(x)</math>, then we can use some variant of the inequality <math>2 \leq f(x + 1) - f(x - 1) \leq 6</math>, which we derived earlier. This is a specific case of <math>x - y \leq f(x) - f(y) \leq 3(x - y)</math>, so we can finish off the argument by invoking transitivity. | ||
+ | |||
+ | |||
{{AIME box|year=2018|n=II|num-b=14|after=Last question}} | {{AIME box|year=2018|n=II|num-b=14|after=Last question}} | ||
{{MAA Notice}} | {{MAA Notice}} |
Revision as of 13:11, 27 March 2018
Problem
Find the number of functions from to the integers such that , , and
for all and in .
Solution
First, suppose . Then, the inequality becomes . In other words, the (positive) difference between consecutive function values is , , or . Let . Note that
Thus, . Note that at most one value of in can be negative. This is because the maximum value of would be if more than one value of is negative. Plugging into the original inequality yields , which becomes . The only way for to be negative while satisfying this inequality is for to equal or . However, this forces , which is disallowed. Hence, we conclude that the following stronger inequality,
is always true. We now have two cases of functions to count. For future reference let be the (ordered) sequence .
Case 1: There is exactly one instance of .
By the "stronger" inequality above, if , and if . If , then contains the subsequence , and the other three -values sum to , so they are either , , and in some order, or they are , , and in some order. Thus, each for which produces sequences . If or , then begins with or ends with , respectively. Either way, the remaining four -values sum to , so they can be any permutation of (six permutations) or (four permutations). Each of these vaues of yields sequences, so our total count for Case 1 is .
Case 2: All values of are positive.
Then, is a permutation of , , , or . The number of ways to permute three s and three s is . The number of ways to permute two s, two s, and two s is . The number of ways to permute one , four s, and one is . Finally, there is obviously only way to permute six s. Our total count for Case 2 is .
To complete the justification that all of these cases satisfy the original inequality, we leverage the fact that is either monotonically increasing (Case 2) or the union of two monotonically increasing subsequences (Case 1). Consider any monotonically increasing subsequence that starts at and ends at . For , will be positive, allowing us to remove the absolute value bars from the original inequality:
Now, the inequality is transitive; supposing , if the inequality is satisfied at and at , then it is also satisfied at . If we ever have a decreasing part where , then we can use some variant of the inequality , which we derived earlier. This is a specific case of , so we can finish off the argument by invoking transitivity.
2018 AIME II (Problems • Answer Key • Resources) | ||
Preceded by Problem 14 |
Followed by Last question | |
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.