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

m (Solution 2)
(Solution 2 (Recursion))
Line 21: Line 21:
  
 
== Solution 2 (Recursion) ==
 
== Solution 2 (Recursion) ==
We use <math>(n,t)</math> to denote the bug's current state.
+
We use <math>(n,t)</math> to denote the bug's current state. We wish to find <math>P(0,5)</math>.
  
 
The first argument <math>n</math> denotes the bug's current position.
 
The first argument <math>n</math> denotes the bug's current position.
Line 29: Line 29:
 
The second argument <math>t</math> denotes the remaining number of moves the bug has.
 
The second argument <math>t</math> denotes the remaining number of moves the bug has.
  
For <math>n = 0</math> and <math>t \geq 1</math>,
+
For <math>n = 0</math> and <math>t \geq 1</math>, we have <cmath>P(0,t) = P(1,t-1).</cmath>
<cmath>
+
For <math>n = 1</math> and <math>t \geq 1</math>, we have <cmath>P(1,t) = \frac{1}{6} P(0,t-1) + \frac{1}{3} P(1,t-1).</cmath>
\begin{align*}
+
For <math>n \in \left\{ 0 , 1 \right\}</math> and <math>t = 0</math>, we have <cmath>P(n,0) = 1.</cmath>
P \left( 0 , t \right) & = P \left( 1 , t - 1 \right) .
+
We solve this recursive equation by using backward induction:
\end{align*}
+
<cmath>\begin{array}{ll}
</cmath>
+
P(0,1) = 1, & P(1,1) = \frac{1}{2}, \\ [1ex]
 
+
P(0,2) = \frac{1}{2}, & P(1,2) = \frac{1}{3}, \\ [1ex]
For <math>n = 1</math> and <math>t \geq 1</math>,
+
P(0,3) = \frac{1}{3}, & P(1,3) = \frac{7}{36}, \\ [1ex]
<cmath>
+
P(0,4) = \frac{7}{36}, & P(1,4) = \frac{13}{108}.
\begin{align*}
+
\end{align*}</cmath>
P \left( 1 , t \right) & = \frac{1}{6} P \left( 0 , t - 1 \right)
+
Therefore, the answer is <math>P(0,5) = P(1,4) = \boxed{\textbf{(A) }\frac{13}{108}}</math>.
+ \frac{1}{3} P \left( 1 , t - 1 \right) .
 
\end{align*}
 
</cmath>
 
 
 
For <math>n \in \left\{ 0 , 1 \right\}</math> and <math>t = 0</math>,
 
<cmath>
 
\begin{align*}
 
P \left( n , 0 \right) & = 1 .
 
\end{align*}
 
</cmath>
 
 
 
We solve this recursive equation by using backward induction.
 
 
 
We get
 
<cmath>
 
\[
 
P \left( 0 , 1 \right) = 1 , \hspace{1cm}
 
P \left( 1 , 1 \right) = \frac{1}{2}
 
\]
 
</cmath>
 
and
 
<cmath>
 
\[
 
P \left( 0 , 2 \right) = \frac{1}{2} , \hspace{1cm}
 
P \left( 1 , 2 \right) = \frac{1}{3}
 
\]
 
</cmath>
 
and
 
<cmath>
 
\[
 
P \left( 0 , 3 \right) = \frac{1}{3} , \hspace{1cm}
 
P \left( 1 , 3 \right) = \frac{7}{36}
 
\]
 
</cmath>
 
and
 
<cmath>
 
\[
 
P \left( 1 , 4 \right) = \frac{13}{108}
 
\]
 
</cmath>
 
and
 
<cmath>
 
\[
 
P \left( 0 , 5 \right) = \frac{13}{108} .
 
\]
 
</cmath>
 
 
 
Therefore, the answer is <math>\boxed{\textbf{(A) }\frac{13}{108}}</math>.
 
  
 
~Steven Chen (www.professorchenedu.com)
 
~Steven Chen (www.professorchenedu.com)

Revision as of 20:27, 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{\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{align*}\] (Error compiling LaTeX. Unknown error_msg)

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 generating function, define $c_{n}\cdot x^{n}$ be $c_{n}$ ways for the end point be ${n}$ unit away from the origins.

Therefore,

if the current point is origin, need to $\cdot6{x}$

if the current point on vertex of the unit hexagon, need to $\cdot(x^{-1}+2)$, where there is one 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 orign, and $\frac{936}{6^5} = \boxed{\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