Problem:
An ant makes a sequence of moves on a cube where a move consists of walking from one vertex to an adjacent vertex along an edge of the cube. Initially the ant is at a vertex of the bottom face of the cube and chooses one of the three adjacent vertices to move to as its first move. For all moves after the first move, the ant does not return to its previous vertex, but chooses to move to one of the other two adjacent vertices. All choices are selected at random so that each of the possible moves is equally likely. The probability that after exactly moves that ant is at a vertex of the top face on the cube is , where and are relatively prime positive integers.
Find .
Solution:
We define to represent the probability that, after total moves, the ant ends up on the same level (top or bottom) it started on β namely, the bottom face.
The ant begins at a vertex on the bottom face of a cube. On the first move, it can move to 3 adjacent vertices: 2 of those are on the bottom face, and 1 is on the top face. Since it chooses uniformly at random, the chance it remains on the bottom face after 1 move is . For the sake of the recurrence, we use a different perspective and define , analyzing transitions from future states instead.
Now observe the ant's behavior for . At move , the ant either:
(1) stays on the same level, with probability , coming from the same level at move ; or
(2) it switches from the opposite level, with probability , having come from move .
This leads to the recurrence:
with base cases , .
Now compute:
p_7 = \frac{1}{2} \cdot \frac{33}{64} + \frac{1}{2} \cdot (1 - \frac{15}{32}) = \frac{59}
To return to the original setup, where the ant starts on the bottom face and makes 8 moves, we compute:
P = \frac{2}{3} \cdot p_7 + \frac{1}{3} \cdot (1 - p_6) = \frac{2}{3} \cdot \frac{59}{128} + \frac{1}{3} \cdot \left(1 - \frac{33}{64}\right) = \frac{17}
Thus, the final answer is .
The problems on this page are the property of the MAA's American Mathematics Competitions