Difference between revisions of "2021 Fall AMC 12B Problems/Problem 17"
(→Solution 3) |
MRENTHUSIASM (talk | contribs) m (→Solution 1) |
||
Line 6: | Line 6: | ||
\frac{4}{27} \qquad\textbf{(E)}\ \frac{1}{16}</math> | \frac{4}{27} \qquad\textbf{(E)}\ \frac{1}{16}</math> | ||
− | ==Solution 1== | + | ==Solution 1 (Recursion)== |
Let <math>S(n)</math> be the number of paths of <math>n</math> moves such that the bug never will have been more than <math>1</math> unit away from the starting position. Clearly, by symmetry, there are two possible states here, the bug being on the center and the bug being on one of the vertices of the unit hexagon around the center. Let <math>C(n)</math> be the number of paths with the aforementioned restriction that end on the center. Let <math>V(n)</math> be the number of paths with the aforementioned restriction that end on a vertex of the surrounding unit hexagon. We have <math>S(n) = 6C(n-1) + 3V(n-1),</math> since from the center, there are <math>6</math> possible points to land to and from a vertex there are <math>3</math> possible points to land to (the two adjacent vertices and the center). We also have <math>C(n) = V(n-1)</math>, since to get to the center the bug must have come from a vertex, and <math>V(n) = 2V(n-1) + 6C(n-1),</math> since from a vertex there are two vertices to move to, and from the center there are <math>6</math> vertices to move to. We can construct a recursion table using the base cases <math>V(1) = 6</math> and <math>C(1) = 0</math> and our recursive rules for <math>C(n)</math> and <math>V(n)</math> as follows: | Let <math>S(n)</math> be the number of paths of <math>n</math> moves such that the bug never will have been more than <math>1</math> unit away from the starting position. Clearly, by symmetry, there are two possible states here, the bug being on the center and the bug being on one of the vertices of the unit hexagon around the center. Let <math>C(n)</math> be the number of paths with the aforementioned restriction that end on the center. Let <math>V(n)</math> be the number of paths with the aforementioned restriction that end on a vertex of the surrounding unit hexagon. We have <math>S(n) = 6C(n-1) + 3V(n-1),</math> since from the center, there are <math>6</math> possible points to land to and from a vertex there are <math>3</math> possible points to land to (the two adjacent vertices and the center). We also have <math>C(n) = V(n-1)</math>, since to get to the center the bug must have come from a vertex, and <math>V(n) = 2V(n-1) + 6C(n-1),</math> since from a vertex there are two vertices to move to, and from the center there are <math>6</math> vertices to move to. We can construct a recursion table using the base cases <math>V(1) = 6</math> and <math>C(1) = 0</math> and our recursive rules for <math>C(n)</math> and <math>V(n)</math> as follows: | ||
− | <cmath>\begin{ | + | <cmath>\begin{array}{c|c|c} |
+ | n & V(n) & C(n) \\ \hline | ||
1 & 6 & 0 \\ | 1 & 6 & 0 \\ | ||
2 & 12 & 6 \\ | 2 & 12 & 6 \\ | ||
3 & 60 & 12 \\ | 3 & 60 & 12 \\ | ||
4 & 192 & 60 \\ | 4 & 192 & 60 \\ | ||
− | \end{ | + | \end{array}</cmath> |
Then, <math>S(5) = 6C(4) + 3V(4) = 6 \cdot 60 + 3 \cdot 192 = 936,</math> and the desired probability is thus <math>\frac{936}{6^5} = \boxed{\frac{13}{108}}.</math> | Then, <math>S(5) = 6C(4) + 3V(4) = 6 \cdot 60 + 3 \cdot 192 = 936,</math> and the desired probability is thus <math>\frac{936}{6^5} = \boxed{\frac{13}{108}}.</math> | ||
− | + | ~fidgetboss_4000 | |
== Solution 2 == | == Solution 2 == |
Revision as of 03:22, 25 February 2022
Problem
A bug starts at a vertex of a grid made of equilateral triangles of side length . At each step the bug moves in one of the possible directions along the grid lines randomly and independently with equal probability. What is the probability that after moves the bug never will have been more than unit away from the starting position?
Solution 1 (Recursion)
Let be the number of paths of moves such that the bug never will have been more than unit away from the starting position. Clearly, by symmetry, there are two possible states here, the bug being on the center and the bug being on one of the vertices of the unit hexagon around the center. Let be the number of paths with the aforementioned restriction that end on the center. Let be the number of paths with the aforementioned restriction that end on a vertex of the surrounding unit hexagon. We have since from the center, there are possible points to land to and from a vertex there are possible points to land to (the two adjacent vertices and the center). We also have , since to get to the center the bug must have come from a vertex, and since from a vertex there are two vertices to move to, and from the center there are vertices to move to. We can construct a recursion table using the base cases and and our recursive rules for and as follows: Then, and the desired probability is thus
~fidgetboss_4000
Solution 2
We use to denote the bug's current state.
The first argument denotes the bug's current position. We use to denote the bug's starting point. We use to denote any point whose distance to the bug's starting point is 1.
The second argument denotes the remaining number of moves the bug has.
For and ,
For and ,
For and ,
We solve this recursive equation by using backward induction.
We get and and and and
Therefore, the answer is .
~Steven Chen (www.professorchenedu.com)
Solution 3 (Generating function)
Use generating function, define be ways for the end point be unit away from the origins.
Therefore,
if the current point is origin, need to
if the current point on vertex of the unit hexagon, need to , where there is one way to return to the origin and there are two ways to keep distance = 1
Now let's start with ;
1st step:
2nd step:
3rd step:
4th step:
5th step:
So there are ways for the bug never moves more than 1 unit away from orign, and
-wwei.yu