2021 Fall AMC 12B Problems/Problem 17

Revision as of 03:42, 29 November 2021 by Wwei.yu (talk | contribs) (Solution 3)

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

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{tabular}{c|c|c} n & V(n) & C(n) \\ \hline 1 & 6 & 0 \\ 2 & 12 & 6 \\ 3 & 60 & 12 \\ 4 & 192 & 60 \\ \end{tabular}\] 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

We use $\left( n , t \right)$ to denote the bug's current state.

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$, \begin{align*} P \left( 0 , t \right) & = P \left( 1 , t - 1 \right) . \end{align*}

For $n = 1$ and $t \geq 1$, \begin{align*} P \left( 1 , t \right) & = \frac{1}{6} P \left( 0 ,  t - 1 \right) + \frac{1}{3} P \left( 1 , t - 1 \right)  . \end{align*}

For $n \in \left\{ 0 , 1 \right\}$ and $t = 0$, \begin{align*} P \left( n , 0 \right) & = 1 . \end{align*}

We solve this recursive equation by using backward induction.

We get \[ P \left( 0 , 1 \right) = 1 , \hspace{1cm} P \left( 1 , 1 \right) = \frac{1}{2} \] and \[ P \left( 0 , 2 \right) = \frac{1}{2} , \hspace{1cm} P \left( 1 , 2 \right) = \frac{1}{3} \] and \[ P \left( 0 , 3 \right) = \frac{1}{3} , \hspace{1cm} P \left( 1 , 3 \right) = \frac{7}{36} \] and \[ P \left( 1 , 4 \right) = \frac{13}{108} \] and \[ P \left( 0 , 5 \right) = \frac{13}{108} . \]

Therefore, the answer is $\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