Difference between revisions of "2021 Fall AMC 12B Problems/Problem 17"

m (Solution 3 (Generating function))
m
Line 16: Line 16:
 
4 & 192 & 60 \\
 
4 & 192 & 60 \\
 
\end{array}</cmath>
 
\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{\textbf{(A)}\ \frac{13}{108}}.</math>
  
 
~fidgetboss_4000
 
~fidgetboss_4000
Line 39: Line 39:
 
P(0,4) = \frac{7}{36}, & P(1,4) = \frac{13}{108}.
 
P(0,4) = \frac{7}{36}, & P(1,4) = \frac{13}{108}.
 
\end{array}</cmath>
 
\end{array}</cmath>
Therefore, the answer is <math>P(0,5) = P(1,4) = \boxed{\textbf{(A) }\frac{13}{108}}</math>.
+
Therefore, the answer is <math>P(0,5) = P(1,4) = \boxed{\textbf{(A)}\ \frac{13}{108}}</math>.
  
 
~Steven Chen (www.professorchenedu.com)
 
~Steven Chen (www.professorchenedu.com)
Line 65: Line 65:
 
5th step:  <math>p(x)=60\cdot6x + 192x\cdot(x^{-1}+2) = 192 + 744x </math>
 
5th step:  <math>p(x)=60\cdot6x + 192x\cdot(x^{-1}+2) = 192 + 744x </math>
  
So, there are <math>192+744=936</math> ways for the bug never moves more than <math>1</math> unit away from origin. The answer is <math>\frac{936}{6^5} = \boxed{\frac{13}{108}}</math>.
+
So, there are <math>192+744=936</math> ways for the bug never moves more than <math>1</math> unit away from origin. The answer is <math>\frac{936}{6^5} = \boxed{\textbf{(A)}\ \frac{13}{108}}</math>.
  
 
~wwei.yu
 
~wwei.yu

Revision as of 22:04, 25 February 2022

Problem

A bug starts at a vertex of a grid made of equilateral triangles of side length $1$. At each step the bug moves in one of the $6$ possible directions along the grid lines randomly and independently with equal probability. What is the probability that after $5$ moves the bug never will have been more than $1$ unit away from the starting position?

$\textbf{(A)}\ \frac{13}{108} \qquad\textbf{(B)}\  \frac{7}{54} \qquad\textbf{(C)}\  \frac{29}{216} \qquad\textbf{(D)}\ \frac{4}{27} \qquad\textbf{(E)}\ \frac{1}{16}$

Solution 1 (Recursion)

Let $S(n)$ be the number of paths of $n$ moves such that the bug never will have been more than $1$ 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 $C(n)$ be the number of paths with the aforementioned restriction that end on the center. Let $V(n)$ be the number of paths with the aforementioned restriction that end on a vertex of the surrounding unit hexagon. We have $S(n) = 6C(n-1) + 3V(n-1),$ since from the center, there are $6$ possible points to land to and from a vertex there are $3$ possible points to land to (the two adjacent vertices and the center). We also have $C(n) = V(n-1)$, since to get to the center the bug must have come from a vertex, and $V(n) = 2V(n-1) + 6C(n-1),$ since from a vertex there are two vertices to move to, and from the center there are $6$ vertices to move to. We can construct a recursion table using the base cases $V(1) = 6$ and $C(1) = 0$ and our recursive rules for $C(n)$ and $V(n)$ as follows: \[\begin{array}{c|c|c} n & V(n) & C(n) \\ \hline & & \\ [-2ex] 1 & 6 & 0 \\ 2 & 12 & 6 \\ 3 & 60 & 12 \\ 4 & 192 & 60 \\ \end{array}\] Then, $S(5) = 6C(4) + 3V(4) = 6 \cdot 60 + 3 \cdot 192 = 936,$ and the desired probability is thus $\frac{936}{6^5} = \boxed{\textbf{(A)}\ \frac{13}{108}}.$

~fidgetboss_4000

Solution 2 (Recursion)

We use $(n,t)$ to denote the bug's current state. We wish to find $P(0,5)$.

The first argument $n$ denotes the bug's current position. We use $n = 0$ to denote the bug's starting point. We use $n = 1$ to denote any point whose distance to the bug's starting point is $1$.

The second argument $t$ denotes the remaining number of moves the bug has.

For $n = 0$ and $t \geq 1$, we have \[P(0,t) = P(1,t-1).\] For $n = 1$ and $t \geq 1$, we have \[P(1,t) = \frac{1}{6} P(0,t-1) + \frac{1}{3} P(1,t-1).\] For $n \in \left\{ 0 , 1 \right\}$ and $t = 0$, we have \[P(n,0) = 1.\] We solve this recursive equation by using backward induction: \[\begin{array}{ll} P(0,1) = 1, & P(1,1) = \frac{1}{2}, \\ [1ex] P(0,2) = \frac{1}{2}, & P(1,2) = \frac{1}{3}, \\ [1ex] P(0,3) = \frac{1}{3}, & P(1,3) = \frac{7}{36}, \\ [1ex] P(0,4) = \frac{7}{36}, & P(1,4) = \frac{13}{108}. \end{array}\] Therefore, the answer is $P(0,5) = P(1,4) = \boxed{\textbf{(A)}\ \frac{13}{108}}$.

~Steven Chen (www.professorchenedu.com)

Solution 3 (Generating Function)

Use a generating function, define $c_{n}\cdot x^{n}$ be $c_{n}$ ways for the destination be $n$ units away from the origin.

We conclude that:

  • If the current point is origin, then we need to multiply by $6x$.
  • If the current point on vertex of the unit hexagon, then we need to multiply by $x^{-1}+2$, where there is $1$ way to return to the origin and there are two ways to keep distance $1$.

Now let's start with $p(x)=1$.

1st step: $p(x)=6x$

2nd step: $p(x)=6x\cdot(x^{-1}+2) = 6 + 12x$

3rd step: $p(x)=6\cdot6x + 12x\cdot(x^{-1}+2) = 12 + 60x$

4th step: $p(x)=12\cdot6x + 60x\cdot(x^{-1}+2) = 60 + 192x$

5th step: $p(x)=60\cdot6x + 192x\cdot(x^{-1}+2) = 192 + 744x$

So, there are $192+744=936$ ways for the bug never moves more than $1$ unit away from origin. The answer is $\frac{936}{6^5} = \boxed{\textbf{(A)}\ \frac{13}{108}}$.

~wwei.yu

See Also

2021 Fall AMC 12B (ProblemsAnswer KeyResources)
Preceded by
Problem 16
Followed by
Problem 18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
All AMC 12 Problems and Solutions

The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. AMC logo.png