返回题库

AIME 2022 II · 第 8 题

AIME 2022 II — Problem 8

专题
Contest Math
难度
L4
来源
AIME

题目详情

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 88 moves that ant is at a vertex of the top face on the cube is mn\frac{m}{n}, where mm and nn are relatively prime positive integers. Find m+n.m + n.

解析

Solution 1 (Four-Variable Recursion)

For all positive integers k,k, let

  • N(k,BB)N(k,\mathrm{BB}) be the number of ways to make a sequence of exactly kk moves, where the last move is from the bottom face to the bottom face.

  • N(k,BT)N(k,\mathrm{BT}) be the number of ways to make a sequence of exactly kk moves, where the last move is from the bottom face to the top face.

  • N(k,TB)N(k,\mathrm{TB}) be the number of ways to make a sequence of exactly kk moves, where the last move is from the top face to the bottom face.

  • N(k,TT)N(k,\mathrm{TT}) be the number of ways to make a sequence of exactly kk moves, where the last move is from the top face to the top face.

The base case occurs at k=1,k=1, from which (N(1,BB),N(1,BT),N(1,TB),N(1,TT))=(2,1,0,0).\left(N(1,\mathrm{BB}),N(1,\mathrm{BT}),N(1,\mathrm{TB}),N(1,\mathrm{TT})\right)=(2,1,0,0).

Suppose the ant makes exactly kk moves for some k2.k\geq2. We perform casework on its last move:

  1. If its last move is from the bottom face to the bottom face, then its next move has
  • 11 way to move from the bottom face to the bottom face.

  • 11 way to move from the bottom face to the top face.

  1. If its last move is from the bottom face to the top face, then its next move has 22 ways to move from the top face to the top face.

  2. If its last move is from the top face to the bottom face, then its next move has 22 ways to move from the bottom face to the bottom face.

  3. If its last move is from the top face to the top face, then its next move has

    • 11 way to move from the top face to the bottom face.

    • 11 way to move from the top face to the top face.

Alternatively, this recursion argument is illustrated below, where each dashed arrow indicates 11 way, and each solid arrow indicates 22 ways:

AIME diagram

Therefore, we have the following relationships:

N(1,BB)=2,N(1,BT)=1,N(1,TB)=0,N(1,TT)=0,N(k+1,BB)=N(k,BB)+2N(k,TB),N(k+1,BT)=N(k,BB),N(k+1,TB)=N(k,TT),N(k+1,TT)=N(k,TT)+2N(k,BT).\begin{aligned} N(1,\mathrm{BB})&=2, \\ N(1,\mathrm{BT})&=1, \\ N(1,\mathrm{TB})&=0, \\ N(1,\mathrm{TT})&=0, \\ N(k+1,\mathrm{BB})&=N(k,\mathrm{BB})+2\cdot N(k,\mathrm{TB}), \\ N(k+1,\mathrm{BT})&=N(k,\mathrm{BB}), \\ N(k+1,\mathrm{TB})&=N(k,\mathrm{TT}), \\ N(k+1,\mathrm{TT})&=N(k,\mathrm{TT})+2\cdot N(k,\mathrm{BT}). \end{aligned} Using these equations, we recursively fill out the table below:

[2.5ex]k12345678[2.25ex]N(k,BB)2226183866118[2.25ex]N(k,BT)12226183866[2.25ex]N(k,TB)002610142662[2.25ex]N(k,TT)02610142662138[2.25ex]Total3612244896192384\begin{array}{c||c|c|c|c|c|c|c|c} \hspace{7mm}&\hspace{6.5mm}&\hspace{6.5mm}&\hspace{6.75mm}&\hspace{6.75mm}&\hspace{6.75mm}&\hspace{6.75mm}&& \\ [-2.5ex] \boldsymbol{k} & \boldsymbol{1} & \boldsymbol{2} & \boldsymbol{3} & \boldsymbol{4} & \boldsymbol{5} & \boldsymbol{6} & \boldsymbol{7} & \boldsymbol{8} \\ \hline \hline &&&&&&&& \\ [-2.25ex] \boldsymbol{N(k,\mathrm{BB})} &2&2&2&6&18&38&66&118 \\ \hline &&&&&&&& \\ [-2.25ex] \boldsymbol{N(k,\mathrm{BT})} &1&2&2&2&6&18&38&66 \\ \hline &&&&&&&& \\ [-2.25ex] \boldsymbol{N(k,\mathrm{TB})} &0&0&2&6&10&14&26&62 \\ \hline &&&&&&&& \\ [-2.25ex] \boldsymbol{N(k,\mathrm{TT})} &0&2&6&10&14&26&62&138 \\ \hline \hline &&&&&&&& \\ [-2.25ex] \textbf{Total}&\boldsymbol{3}&\boldsymbol{6}&\boldsymbol{12}&\boldsymbol{24}&\boldsymbol{48}&\boldsymbol{96}&\boldsymbol{192}&\boldsymbol{384} \end{array} By the Multiplication Principle, there are 32k13\cdot2^{k-1} ways to make exactly kk moves. So, we must get

N(k,BB)+N(k,BT)+N(k,TB)+N(k,TT)=32k1N(k,\mathrm{BB})+N(k,\mathrm{BT})+N(k,\mathrm{TB})+N(k,\mathrm{TT})=3\cdot2^{k-1} for all values of k.k.

Finally, the requested probability is

N(8,BT)+N(8,TT)N(8,BB)+N(8,BT)+N(8,TB)+N(8,TT)=66+138118+66+62+138=204384=1732,\frac{N(8,\mathrm{BT})+N(8,\mathrm{TT})}{N(8,\mathrm{BB})+N(8,\mathrm{BT})+N(8,\mathrm{TB})+N(8,\mathrm{TT})}=\frac{66+138}{118+66+62+138}=\frac{204}{384}=\frac{17}{32}, from which the answer is 17+32=049.17+32=\boxed{049}.

~Arcticturn ~MRENTHUSIASM

Solution 2 (Markov Chain and Dynamic Programming)

Let the state from bottom to top be B2T,B2T, from top to top be T2T,T2T, from top to bottom be T2B,T2B, and from bottom to bottom be B2B.B2B. We can draw the following State Transition Diagram with Markov Chain. The numbers on the transition arc are the transition probabilities.

AIME diagram

The probabilities of being in a state after nn steps and after n1n-1 steps has the following relationships:

B2T(n)=B2B(n1)12T2T(n)=B2T(n1)+T2T(n1)12T2B(n)=T2T(n1)12B2B(n)=T2B(n1)+B2B(n1)12\begin{aligned} B2T(n) &= B2B(n-1) \cdot \frac12\\ T2T(n) &= B2T(n-1) + T2T(n-1) \cdot \frac12\\ T2B(n) &= T2T(n-1) \cdot \frac12\\ B2B(n) &= T2B(n-1) + B2B(n-1) \cdot \frac12 \end{aligned} Those probabilities are calculated by Dynamic Programming in the following table:

AIME diagram

Finally, the requested probability is 1164+2364=1732,\frac{11}{64} + \frac{23}{64} = \frac{17}{32}, from which the answer is 17+32=049.17 + 32 = \boxed{049}.

~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 pip_i to be the probability that after ii moves, the ant ends up on the level it started on.

On the first move, the ant can stay on the bottom level with 23\frac{2}{3} chance and 77 moves left. Or, it can move to the top level with 13\frac{1}{3} chance and 66 moves left (it has to spend another on the top as it can not return immediately). So the requested probability is P=23(1p7)+13p6P = \frac{2}{3}(1 - p_7) + \frac{1}{3}p_6.

Consider when the ant has ii moves left (and it's not the ant's first move). It can either stay on its current level with 12\frac{1}{2} chance and i1i - 1 moves left, or travel to the opposite level with 12\frac{1}{2} chance, then move to another vertex on the opposite level, to have i2i - 2 moves left. Thus we obtain the recurrence

pi=12pi1+12(1pi2)p_i = \frac{1}{2}p_{i - 1} + \frac{1}{2}(1 - p_{i - 2}) Computing pip_i with the starting conditions p0=1p_0 = 1 and p1=12p_1 = \frac{1}{2}, we obtain p6=3364p_6 = \frac{33}{64} and p7=59128p_7 = \frac{59}{128}. Hence P=23(1p7)+13p6=1732P = \frac{2}{3}(1 - p_7) + \frac{1}{3}p_6= \frac{17}{32} as desired; 049\boxed{049}.

~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).

  1. Case 1: one switch. Our one switch can either happen at the start/end of our moves, or in the middle. There are 4+24=284 + 24 = 28 ways to do this, outlined below.
    1. 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 22 to count for symmetry (last move is a switch) so this case yields 22=42^2 = 4 possibilities.
    2. 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 22 ways to choose their direction of travel. This case yields 622=246 \cdot 2^2 = 24 possibilities.
  2. Case 2: three switches. Either two, one, or none of our switches occur at the start/end of our moves. There are 16+96+64=17616 + 96 + 64 = 176 ways to do this, outlined below. (Keep in mind we can't have two switches in a row.)
    1. Subcase 1: start and end with a switch. Since our third switch can't be in moves 22 or 77, there are four ways to place our switch, breaking our sequence into two chains. This case yields 422=164 \cdot 2^2 = 16 possibilities.
    2. Subcase 2: one of our switches is at the start/end. WLOG our first move is a switch; moves 22 and 88 cannot be switches. We can choose 22 from any of the remaining 55 moves to be switches, but we have to subtract the 44 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 2((52)4)23=962\left(\binom{5}{2} - 4\right) \cdot 2^3 = 96 possibilities.
    3. Subcase 3: all our switches are in the middle. We choose 33 from any of the 66 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 22 and four places for the third switch; however this overcounts the case where all three are in a row, which has 44 possibilities. These three switches break our sequence into four chains, so this case yields ((63)54+4)24=64\left(\binom{6}{3} - 5 \cdot 4 + 4\right) \cdot 2^4 = 64 possibilities.

Our probability is then 176+28327=1732\frac{176 + 28}{3 \cdot 2^7} = \frac{17}{32}, so the answer is 17+32=04917+32=\boxed{049}.

Solution 5 (One-Variable Recursion and Casework)

Let p(n)p(n) be the probability that we are on the top when you get to the nnth move, and p(n1)p(n-1) and p(n2)p(n-2) be the probability that you are on the top when you get to the (n1)(n-1)th move and (n2)(n-2)th move respectively.

Now you can do some recursion, splitting up into cases:

Case 1: You are not on the top for the (n1)(n-1)th move or the (n2)(n-2)th move. In this case, it is a 1p(n1)1-p(n-1) chance that you were not on the top for the (n1)(n-1)th move, and a 1p(n2)1-p(n-2) that you are not on the top for the (n2)(n-2)th move. This leads you to a 12(1p(n1))(1p(n2))\frac{1}{2}\cdot(1-p(n-1))\cdot(1-p(n-2)) chance for the first case. (The 12\frac12 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 (n1)(n-1)th move, but not on the top for the (n2)(n-2)th move. This leads you to a p(n1)(1p(n2))p(n-1)\cdot(1-p(n-2)) probability (no extra components because you cannot return).

Case 3: You are on top for both the (n1)(n-1)th move and the (n2)(n-2)th move. This leads to a probability of 12p(n1)p(n2)\frac{1}{2}\cdot p(n-1)\cdot p(n-2) (adding the extra 12\frac12 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 44th case.

These cases, added up, lead you to

p(n)=12(1p(n1))(1p(n2))+p(n1)(1p(n2))+12p(n1)p(n2).p(n)=\frac{1}{2}\cdot(1-p(n-1))(1-p(n-2))+p(n-1)(1-p(n-2))+\frac{1}{2}\cdot p(n-1)p(n-2). This can be further simplified down by expanding and combining like terms to

p(n)=1+p(n1)p(n2)2.p(n)=\frac{1+p(n-1)-p(n-2)}{2}. Then we must find p(1)p(1) and p(2)p(2). p(1) is trivially 13\frac{1}{3}. You can find p(2)p(2) using basic probability techniques that is left as an exercise to the reader to get 23\frac{2}{3}. In the end, you plug in to get

p(1)=13,P(2)=23,P(3)=23,P(4)=12,P(5)=512,P(6)=1124,P(7)=2548,P(8)=1732.p(1)=\frac{1}{3}, P(2)=\frac{2}{3}, P(3)=\frac{2}{3}, P(4)=\frac{1}{2}, P(5)=\frac{5}{12}, P(6)=\frac{11}{24}, P(7)=\frac{25}{48}, P(8)=\boxed{\frac{17}{32}}. Therefore, the answer is 17+32=04917+32=\boxed{049}.

~dragoon

Solution 6 (Casework)

Illustration as

T3_________T4
|\          |\
| \         | \
|  \        |  \
|  T2___________T1
|   |       |   |
B3_ | _____B4   |
\   |        \  |
 \  |         \ |
  \ |          \|
   \B2__________B1

WLOG 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 P(B1)P(B1), P(T2)=P(T4)=P(B3)=13(1P(B1))P(T2)=P(T4)=P(B3)=\frac{1}{3} (1-P(B1))

After 8 moves, there are 3×273\times 2^7 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

xyxyxyxyxyxyxyxy yxyxyxyxyxyxyxyx

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

yyzzyyzz yzyzyzyz yzzyyzzy zyyzzyyz zyzyzyzy zzyyzzyy

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 (3+5+4)×2×3=72(3+5+4)\times 2\times 3=72.

Therefore P(B1)=(6+72)327=1364P(B1)=\frac{(6+72)}{3*2^7}=\frac{13}{64}

Which gives us P(T2)+P(T4)=23(1P(B1))=1732P(T2)+P(T4)=\frac{2}{3} (1-P(B1))=\frac{17}{32}

So the answer is 17+32=04917+32=\boxed{049}.

~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 pij=P(Xn+1=jXn=i)p_{ij} = P(X_{n+1} = j | X_n = i) be the probability that state ii transits to state jj on the next step, and sis_i be the probability of being in state ii. It follows that sjs_j is the sum of the products of sis_i and pijp_{ij} of all the previous state ii:

sj=i(sipij).s_j = \sum_{i} (s_{i} \cdot p_{ij}). 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