Difference between revisions of "2018 AIME I Problems/Problem 14"
Jonathan.li (talk | contribs) (→Solution 3) |
Jonathan.li (talk | contribs) (→Solution 3) |
||
Line 69: | Line 69: | ||
For vertices <math>S, P_1, P_2, P_5,</math> the number of ways to get there after <math>n</math> jumps is the sum of the number of ways to get to the adjacent vertices after <math>n-1</math> jumps. For vertices <math>P_3,</math> and <math>P_4,</math> the number of ways to get there after <math>n</math> jumps is he number of ways to get to <math>P_2</math> and <math>P_5</math> after <math>n-1</math> jumps. | For vertices <math>S, P_1, P_2, P_5,</math> the number of ways to get there after <math>n</math> jumps is the sum of the number of ways to get to the adjacent vertices after <math>n-1</math> jumps. For vertices <math>P_3,</math> and <math>P_4,</math> the number of ways to get there after <math>n</math> jumps is he number of ways to get to <math>P_2</math> and <math>P_5</math> after <math>n-1</math> jumps. | ||
− | <math> \begin{tabular}{|l|*{7}{c}|} | + | <math> \begin{tabular}{|l|*{7}{c}|} \hline |
− | Jump \# & | + | Jump \# & S & 1 & 2 & 3 & </math>E<math> & 4 & 5 \\ \hline |
− | 1 & 0 & 1 | + | 1 & 0 & 1 & 0 & 0 & \textbf{0} & 0 & 1 \\ \hline |
− | 2 & 2 & 0 | + | 2 & 2 & 0 & 1 & 0 & \textbf{0} & 1 & 0 \\ \hline |
− | 3 & 0 & 3 | + | 3 & 0 & 3 & 0 & 1 & \textbf{1} & 0 & 3 \\ \hline |
− | 4 & 6 & 0 | + | 4 & 6 & 0 & 4 & 0 & \textbf{1} & 3 & 0 \\ \hline |
5 & 0 & 10 & 0 & 4 & \textbf{3} & 0 & 9 \\ \hline | 5 & 0 & 10 & 0 & 4 & \textbf{3} & 0 & 9 \\ \hline | ||
6 & 19 & 0 & 14 & 0 & \textbf{4} & 9 & 0 \\ \hline | 6 & 19 & 0 & 14 & 0 & \textbf{4} & 9 & 0 \\ \hline |
Revision as of 23:55, 14 October 2024
Problem
Let be a heptagon. A frog starts jumping at vertex . From any vertex of the heptagon except , the frog may jump to either of the two adjacent vertices. When it reaches vertex , the frog stops and stays there. Find the number of distinct sequences of jumps of no more than jumps that end at .
Solution 1
This is easily solved by recursion/dynamic programming. To simplify the problem somewhat, let us imagine the seven vertices on a line . We can count the number of left/right (L/R) paths of length that start at and end at either or .
We can visualize the paths using the common grid counting method by starting at the origin , so that a right (R) move corresponds to moving 1 in the positive direction, and a left (L) move corresponds to moving 1 in the positive direction. Because we don't want to move more than 2 units left or more than 3 units right, our path must not cross the lines or . Letting be the number of such paths from to under these constraints, we have the following base cases:
and recursive step for .
The filled in grid will look something like this, where the lower-left corresponds to the origin:
The bolded numbers on the top diagonal represent the number of paths from to in 2, 4, 6, 8, 10 moves, and the numbers on the bottom diagonal represent the number of paths from to in 3, 5, 7, 9, 11 moves. We don't care about the blank entries or entries above the line . The total number of ways is .
(Solution by scrabbler94)
Solution 2
Let denotes the number of sequences with length that ends at . Define similarly for the other vertices. We seek for a recursive formula for . Computing a few terms we have , , , , and .
Using the formula yields , , , , , , , and .
Finally adding yields .
~ Nafer
Solution 3
For vertices the number of ways to get there after jumps is the sum of the number of ways to get to the adjacent vertices after jumps. For vertices and the number of ways to get there after jumps is he number of ways to get to and after jumps.
$\begin{tabular}{|l|*{7}{c}|} \hline Jump \# & S & 1 & 2 & 3 &$ (Error compiling LaTeX. Unknown error_msg)E$& 4 & 5 \\ \hline 1 & 0 & 1 & 0 & 0 & \textbf{0} & 0 & 1 \\ \hline 2 & 2 & 0 & 1 & 0 & \textbf{0} & 1 & 0 \\ \hline 3 & 0 & 3 & 0 & 1 & \textbf{1} & 0 & 3 \\ \hline 4 & 6 & 0 & 4 & 0 & \textbf{1} & 3 & 0 \\ \hline 5 & 0 & 10 & 0 & 4 & \textbf{3} & 0 & 9 \\ \hline 6 & 19 & 0 & 14 & 0 & \textbf{4} & 9 & 0 \\ \hline 7 & 0 & 33 & 0 & 14 & \textbf{9} & 0 & 28 \\ \hline 8 & 61 & 0 & 47 & 0 & \textbf{14} & 28 & 0 \\ \hline 9 & 0 & 108 & 0 & 47 & \textbf{28} & 0 & 89 \\ \hline 10 & 197 & 0 & 155 & 0 & \textbf{47} & 89 & 0 \\ \hline 11 & 0 & 352 & 0 & 155 & \textbf{89} & 0 & 286 \\ \hline 12 & 638 & 0 & 507 & 0 & \textbf{155} & 286 & 0 \\ \hline \end{tabular}$ (Error compiling LaTeX. Unknown error_msg)
Video Solution
https://www.youtube.com/watch?v=uWNExJc3hok
2018 AIME I (Problems • Answer Key • Resources) | ||
Preceded by Problem 13 |
Followed by Problem 15 | |
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.