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 8 moves that ant is at a vertex of the top face on the cube is nmβ, where m and n are relatively prime positive integers.
Find m+n.
Solution:
Answer (049):
Denote moves between the bottom face and the top face by V (vertical moves) and other moves by H (horizontal moves). Then every sequence of moves can be written as a sequence of Vs and Hs, for example, HVHHHVHV. The probabilities that the first move is H or V are 32β and 31β, respectively. The probabilities that the next move after an H is H or V are both 21β. The probability that the next move after a V is H is 1 . The problem requests the probability that the number of V moves in a sequence of eight moves is odd, which happens when there are either 1 or 3 vertical moves.
- Suppose there is 1 V in the sequence. If V is the first move, the probability is 31ββ
1β
(21β)6=3β
261β. If V is the last move, the probability is 32ββ
(21β)7=3β
261β. Otherwise, the probability is 6β
32ββ
1β
(21β)6=241β.
- Suppose there are 3 Vs in the sequence. If the first and last moves are V , the probability is 4β
31ββ
12β
(21β)5=3β
231β. If the first move is V and the last move is H , the probability is (24β)β
31ββ
13β
(21β)4=231β. If the first move is H and the last move is V , the probability is (24β)β
32ββ
12β
(21β)5=231β. If V is neither first nor last, the probability is 4β
32ββ
13β
(21β)4=3β
21β.
The required probability is
3β
261β+3β
261β+241β+3β
231β+231β+231β+3β
21β=3217β
The requested sum is 17+32=49.
OR
Define V and H as above. Immediately after a horizontal move is made, let anβ be the probability that the ant will be on the same face (top or bottom) at the beginning and the end of n more moves. If the following move is H , then the ant ends up on the same face in n additional moves after this H with probability anβ. If the following move is V , then the ant ends up on the same face in n additional moves after this V with probability 1βanβ1β. Because P(H)=P(VH)=21β following a horizontal move, it follows that for n>2
anβ=21βanβ1β+21β(1βanβ2β).
Because a1β=P(H)=21β and a2β=P(HH)=41β, it follows that a3β=83β,a4β=169β,a5β=3219β,a6β=6433β, and a7β=12859β. Finally, because at the outset P(H)=32β and P(VH)=31β, the ant is on the bottom face after eight moves with probability
32βa7β+31β(1βa6β)=3215β.
Thus the ant is on the top face with probability 1β3215β=3217β, as above.
OR
For each n=1,β¦,8, let anβ,bnβ,xnβ, and ynβ denote the number of paths of length n whose last move stays on the top face, moves from top to bottom, stays on the bottom face, or moves from bottom to top, respectively. Then the following recursions hold for nβ₯2 :
anβbnβxnβynββ=anβ1β+2ynβ1β=anβ1β=xnβ1β+2bnβ1β=xnβ1β.β
The number of paths can be computed recursively yielding
| Last move |
n |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
| Stay on top |
anβ |
0 |
2 |
6 |
10 |
14 |
26 |
62 |
138 |
| Move to bottom |
bnβ |
0 |
0 |
2 |
6 |
10 |
14 |
26 |
62 |
| Stay on bottom |
xnβ |
2 |
2 |
2 |
6 |
18 |
38 |
66 |
118 |
| Move to top |
ynβ |
1 |
2 |
2 |
2 |
6 |
18 |
38 |
66 |
In general the nth column sums to 3β
2nβ1, so the required probability is
3β
27a8β+y8ββ=384138+66β=3217β,
as above.
The problems and solutions on this page are the property of the MAA's American Mathematics Competitions