AIME 2021 II · 第 8 题
AIME 2021 II — Problem 8
题目详情
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 1 (Four-Variable Recursion)
For all positive integers let
-
be the number of ways to make a sequence of exactly moves, where the last move is from the bottom face to the bottom face.
-
be the number of ways to make a sequence of exactly moves, where the last move is from the bottom face to the top face.
-
be the number of ways to make a sequence of exactly moves, where the last move is from the top face to the bottom face.
-
be the number of ways to make a sequence of exactly moves, where the last move is from the top face to the top face.
The base case occurs at from which
Suppose the ant makes exactly moves for some We perform casework on its last move:
- If its last move is from the bottom face to the bottom face, then its next move has
-
way to move from the bottom face to the bottom face.
-
way to move from the bottom face to the top face.
-
If its last move is from the bottom face to the top face, then its next move has ways to move from the top face to the top face.
-
If its last move is from the top face to the bottom face, then its next move has ways to move from the bottom face to the bottom face.
-
If its last move is from the top face to the top face, then its next move has
-
way to move from the top face to the bottom face.
-
way to move from the top face to the top face.
-
Alternatively, this recursion argument is illustrated below, where each dashed arrow indicates way, and each solid arrow indicates ways:

Therefore, we have the following relationships:
Using these equations, we recursively fill out the table below:
By the Multiplication Principle, there are ways to make exactly moves. So, we must get
for all values of
Finally, the requested probability is
from which the answer is
~Arcticturn ~MRENTHUSIASM
Solution 2 (Markov Chain and Dynamic Programming)
Let the state from bottom to top be from top to top be from top to bottom be and from bottom to bottom be We can draw the following State Transition Diagram with Markov Chain. The numbers on the transition arc are the transition probabilities.
![]()
The probabilities of being in a state after steps and after steps has the following relationships:
Those probabilities are calculated by Dynamic Programming in the following table:

Finally, the requested probability is from which the answer is
~isabelchen
Solution 3 (One-Variable Recursion)
Note that we don't care which exact vertex the ant is located at, just which level (either top face or bottom face). Consider the ant to be on any of the two levels and having moved at least one move. Define to be the probability that after moves, the ant ends up on the level it started on.
On the first move, the ant can stay on the bottom level with chance and moves left. Or, it can move to the top level with chance and moves left (it has to spend another on the top as it can not return immediately). So the requested probability is .
Consider when the ant has moves left (and it's not the ant's first move). It can either stay on its current level with chance and moves left, or travel to the opposite level with chance, then move to another vertex on the opposite level, to have moves left. Thus we obtain the recurrence
Computing with the starting conditions and , we obtain and . Hence as desired; .
~polarity
Solution 4 (Casework)
On each move, we can either stay on the level we previously were (stay on the bottom/top) or switch levels (go from top to bottom and vise versa). Since we start on the bottom, ending on the top means that we will have to switch an odd number of times; since we cannot switch twice in a row, over an eight-move period we can either make one or three switches. Furthermore, once we switch to a level we can choose one of two directions of traveling on that level: clockwise or counterclockwise (since we can't go back to our previous move, our first move on the level after switching determines our direction).
- Case 1: one switch. Our one switch can either happen at the start/end of our moves, or in the middle. There are ways to do this, outlined below.
- Subcase 1: switch happens at ends. If our first move is a switch, then there are two ways to determine the direction we travel along the top layer. Multiply by to count for symmetry (last move is a switch) so this case yields possibilities.
- Subcase 2: switch happens in the middle. There are six places for the switch to happen; the switch breaks the sequences of moves into two chains, with each having ways to choose their direction of travel. This case yields possibilities.
- Case 2: three switches. Either two, one, or none of our switches occur at the start/end of our moves. There are ways to do this, outlined below. (Keep in mind we can't have two switches in a row.)
- Subcase 1: start and end with a switch. Since our third switch can't be in moves or , there are four ways to place our switch, breaking our sequence into two chains. This case yields possibilities.
- Subcase 2: one of our switches is at the start/end. WLOG our first move is a switch; moves and cannot be switches. We can choose from any of the remaining moves to be switches, but we have to subtract the illegal cases where the two switches are in a row (3-4, 4-5, 5-6, 6-7). These three switches break our sequence into three chains; accounting for symmetry this case yields possibilities.
- Subcase 3: all our switches are in the middle. We choose from any of the middle moves to be our switches, but have to subtract the cases where at least two of them are in a row. If at least two switches are in a row, there are five places for the group of and four places for the third switch; however this overcounts the case where all three are in a row, which has possibilities. These three switches break our sequence into four chains, so this case yields possibilities.
Our probability is then , so the answer is .
Solution 5 (One-Variable Recursion and Casework)
Let be the probability that we are on the top when you get to the th move, and and be the probability that you are on the top when you get to the th move and th move respectively.
Now you can do some recursion, splitting up into cases:
Case 1: You are not on the top for the th move or the th move. In this case, it is a chance that you were not on the top for the th move, and a that you are not on the top for the th move. This leads you to a chance for the first case. (The is there because of the fact that you can go up and you can also stay on the bottom side, as you cannot return.)
Case 2: You are on the top for the th move, but not on the top for the th move. This leads you to a probability (no extra components because you cannot return).
Case 3: You are on top for both the th move and the th move. This leads to a probability of (adding the extra because you can either stay on the top or go down.
As the 4th case requires you to go down then up, but you cannot retrace, there is no th case.
These cases, added up, lead you to
This can be further simplified down by expanding and combining like terms to
Then we must find and . p(1) is trivially . You can find using basic probability techniques that is left as an exercise to the reader to get . In the end, you plug in to get
Therefore, the answer is .
~dragoon
Solution 6 (Casework)
Illustration as
T3_________T4
|\ |\
| \ | \
| \ | \
| T2___________T1
| | | |
B3_ | _____B4 |
\ | \ |
\ | \ |
\ | \|
\B2__________B1WLOG we assume the ant starts from B1. After 8 moves, it will arrive on one of T2, T4, B1 and B3. And apparently T2/T4/B1 has the same possibility. In the other word, if we can find out the possibililty of arrival of ,
After 8 moves, there are cases. Now we consider the cases the ant can arrive B1.
Since the ant moves along the edges, there are 6 different possible moves: +x, -x, +y, -y, +z, -z. For each direction x/y/z, the ant will always move even times and always move positively first and negatively then. So we do not need to differ +x and -x (so does y and z). And since the ant can not move backward immediately, no two x(or y or z) should be consecutive. Now we consider the possible sequence of x/y/z of 8 moves.
Choice 1: only one direction, impossible since no two consecutive x/y/z
Choice 2: only two direction. For example, if there are only x and y, there are only two possible sequence
There are total 6 cases for this scenario.
Choice 3: all three directions, consider there are 4 x's and 2 y's and 2 z's There are 6 arrangements for 2 y's and 2 z's
Corresponding for the 4 x's placement numbers are 3, 5, 4, 4, 5, 3. Consider x/y/z to be rotational. The total is .
Therefore
Which gives us
So the answer is .
~orlando
Remark (Markov Chain)
This problem is similar to the following problems:
-
1985 AIME Problem 12
-
2003 AIME II Problem 13
-
2021 AMC 12A Problem 23
-
2022 AMC 8 Problem 25
They can all be solved by Markov Chain and Dynamic Programming.
Let be the probability that state transits to state on the next step, and be the probability of being in state . It follows that is the sum of the products of and of all the previous state :
This formula can also be applied to solve 2019 AMC10B Problem 22.
~isabelchen
Video Solution
https://youtu.be/dBLEe0oczuA
~Interstigation
Video Solution
https://youtu.be/4UjQhFEa1ms
~MathProblemSolvingSkills.com