返回题库

AIME 2018 I · 第 10 题

AIME 2018 I — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

The wheel shown below consists of two circles and five spokes, with a label at each point where a spoke meets a circle. A bug walks along the wheel, starting at point AA. At every step of the process, the bug walks from one labeled point to an adjacent labeled point. Along the inner circle the bug only walks in a counterclockwise direction, and along the outer circle the bug only walks in a clockwise direction. For example, the bug could travel along the path AJABCHCHIJAAJABCHCHIJA, which has 1010 steps. Let nn be the number of paths with 1515 steps that begin and end at point AA. Find the remainder when nn is divided by 1000.1000.

AIME diagram

解析

Solution 1

We divide this up into casework. The "directions" the bug can go are Clockwise\text{Clockwise}, Counter-Clockwise\text{Counter-Clockwise}, and Switching\text{Switching}. Let an II signal going clockwise (because it has to be in the inner circle), an OO signal going counter-clockwise, and an SS switching between inner and outer circles. An example string of length fifteen that gets the bug back to AA would be ISSIIISOOSISSIIISSIIISOOSISSII. For the bug to end up back at AA, the difference between the number of II's and OO's must be a multiple of 55.

Case 1 -- There are 15 more II's than OO's.

There is clearly 11 way for this to happen.

Case 2 -- There are 55 more II's than OO's.

We split this case up into several sub-cases based on the number of SS's.

Sub-case 1 -- There are 1010 SS's and 55 II's.

Notice that the number of ways to order the II's and OO's are independent assortments because the II's must be in the "even" spaces between SS's (i.e. before the 1st SS, between the 2nd and 3rd SS's, etc.), while the OO's must be in the "odd" spaces.

There are 66 places to put the II's (after the 0th, 2nd, 4th, 6th, 8th, and 10th SS's), and 44 places to put the (0) OO's. We use stars and bars to get an answer of (105)(40)\binom{10}{5}\binom{4}{0}

Sub-case 2 -- There are 88 SS's, 66 II's, and 11 OO.

Similarly and by using stars and bars, we get an amount of (104)(41)\binom{10}{4}\binom{4}{1}

All the other sub-cases are similar, with a total of (105)(40)+(104)(41)++(101)(44)=(145)=2002\binom{10}{5}\binom{4}{0}+\binom{10}{4}\binom{4}{1}+\cdots+\binom{10}{1}\binom{4}{4}=\binom{14}{5}=2002 by Vandermonde's Identity.

Case 3 -- There are 55 more OO's than II's.

This case is similar to the other case.

Here is an example of a sub-case for this case.

Sub-case

There are 1010 SS's and 55 OO's.

There are (94)(50)\binom{9}{4}\binom{5}{0} ways to do this.

We can see now that the pattern is going to be (94)(50)+(93)(51)++(90)(54)=(144)=1001\binom{9}{4}\binom{5}{0}+\binom{9}{3}\binom{5}{1}+\cdots+\binom{9}{0}\binom{5}{4}=\binom{14}{4}=1001.

So, the total number of ways is 1+2002+1001=30041+2002+1001=3004 which gives 004\boxed{004} as the answer.

Solution 2 (Official MAA)

Note that the set of sequences of moves the bug makes is in bijective correspondence with the set of strings of XXs and YYs of length 1515, where XX denotes a move which is either counterclockwise or inward along a spoke and YY denotes a move which is either clockwise or outward along a spoke. (The proof of this basically boils down to the fact that which one depends on whether the bug is on the inner wheel or the outer wheel.) Now the condition that the bug ends at A implies that the difference between the number of XXs and the number of YYs is a multiple of 55, and so we must have either 44, 99, or 1414 XXs within the first fourteen moves with the last move being an XX. This implies the answer is

(144)+(149)+(1414)=3004004(mod1000).\binom{14}4+\binom{14}9+\binom{14}{14} = 3004\equiv \boxed{004}\pmod{1000}.

Solution 3 (Similar To Solution 2 But Modified To Clarify)

Let an OO signal a move that ends in the outer circle and II signal a move that ends in the inner circle. Now notice that for a string of 1515 moves to end at AA, the difference between OO's and II's in the string must be a multiple of 5,5, and this is because the net displacement of the bug after its journey must be a multiple of 55, as that is one cycle around the wheel.

1515 II's: Trivially 11 case.

55 OO's and 1010 II's: Since the string has to end in an II for the bug to land on AA, there are a total of (145)=2002\binom{14}{5}=2002 ways to put 55 OO's in the first 1414 moves.

1010 OO's and 55 II's: Similarly there are (144)=1001\binom{14}{4}=1001 ways to put 51=45-1=4 II's in the first 1414 moves.

1515 OO's: Impossible since the string has to end with an I.

This brings us an answer of 1+2002+1001=3004004(mod1000)1+2002+1001=3004 \equiv \boxed{004} \pmod{1000}.

-Solution by mathleticguyyyyyyyyy- ~Edited by ike.chen ~Edited again by nevergonnagiveup

Solution 4 (Recursion)

Define AnA_n to be the number of sequences of length nn that ends at AA and similarly for the other spokes. Also, let

Sn=An+Bn+Cn+Dn+En+Fn+Gn+Hn+In+JnS_n=A_n+B_n+C_n+D_n+E_n+F_n+G_n+H_n+I_n+J_n At every point in the path, the bug has 22 choices for its next move. Since SnS_n represents the total number of paths we have Sn=2nS_n=2^n. We can create a recursive formula for An:A_n:

An=Jn1+En1=(In2+An2)+(Dn2+Fn2)=(Hn3+Bn3)+(Jn3+En3)+(Gn3+Cn3)+(Jn3+En3)=(Bn3+Cn3+En3+Gn3+Hn3+Jn3)+(Jn3+En3)=(Sn3(In3+An3+Dn3+Fn3))+An2=2n3(Jn2+En2)+An2=2n3An1+An2\begin{aligned} A_n&=J_{n-1}+E_{n-1} \\ &=(I_{n-2}+A_{n-2})+(D_{n-2}+F_{n-2}) \\ &=(H_{n-3}+B_{n-3})+(J_{n-3}+E_{n-3})+(G_{n-3}+C_{n-3})+(J_{n-3}+E_{n-3}) \\ &=(B_{n-3}+C_{n-3}+E_{n-3}+G_{n-3}+H_{n-3}+J_{n-3})+(J_{n-3}+E_{n-3}) \\ &=(S_{n-3}-(I_{n-3}+A_{n-3}+D_{n-3}+F_{n-3}))+A_{n-2} \\ &=2^{n-3}-(J_{n-2}+E_{n-2})+A_{n-2} \\ &=2^{n-3}-A_{n-1}+A_{n-2} \\ \end{aligned} A0=0A_0=0, A1=0A_1=0, A2=1A_2=1, A3=0A_3=0, A4=3A_4=3. Continuing the process yields A15=3004A_{15}=3\boxed{004}.

~ Nafer, minor edits by grogg007

Solution 5 (Stars and Bars)

The points on the outer circle and the points on the inner circle have a one-to-one correspondence. Therefore, it is equivalent to the scenario of switching directions back and forth in the inner circle but changing directions to make up for travelling on spokes. If the ant changes directions ss times, the number of moves the ant makes is 15s15-s. Also note that is switches directions an even number of times, so we think of it in pairs:

Case 1: 0 pairs

The ant would have to only be in the inner circle and go in one direction. Hence there is 11 way.

Case 2: 1 pair

This is equivalent to the ant making 13 moves in the inner circle where it switches directions 2 times (counterclockwise-clockwise-counterclockwise). Note that the number of counterclockwise and clockwise moves must be equivalent(mod5)\pmod{5}. Let the number of counterclockwise moves be CC and clockwise moves be CC'. The only two feasible solutions for (C,C)(C,C') are (4,9)(4,9) and (9,4)(9,4). Therefore, we use stars and bars to obtain 10+5=1510+5=15 ways for this case.

Case 3: 2 pairs

The ant changes directions 4 times and makes 11 moves, so we obtain (3,8)(3,8) and (8,3)(8,3) using similar logic. Using stars and bars once again, we obtain 90+180=27090+180=270 ways for this case.

Case 4: 3 pairs

Again, the only solutions for (C,C)(C,C') are (2,7)(2,7) and (7,2)(7,2). Using stars and bars, we obtain 360+720=1080360+720=1080.

Case 5: 4 pairs

The only solutions are (1,6)(1,6) and (6,1)(6,1). Using stars and bars, we obtain 840+420=1260840+420=1260.

Case 6: 5 pairs

The only solutions are (0,5)(0,5) and (5,0)(5,0). Using stars and bars, we obtain 252+126=378252+126=378. Note that there are no more cases since CC and CC' have to be equivalent(mod5)\pmod{5}, which would need to make CC or CC' negative. Adding all the cases, we get 1+15+270+1080+1260+378=30041+15+270+1080+1260+378=3004. Taking modulo 10001000, we obtain 3004004(mod1000)3004 \equiv \boxed{004} \pmod{1000}

The process of using stars and bars was the number of ways to group the counterclockwise and clockwise moves. For instance, if there are pp pairs of switches, then based on the solutions for (C,C)(C,C'), we can divide CC into p+1p+1 subsets and CC' into pp subsets. This is equivalent to putting CC objects in p+1p+1 bins and CC' objects into pp bins where a bin can be empty which is modeled by consecutive switches. Then, we multiply both results. Therefore, for each pp, we compute (C+pp)(C+p1p1)\dbinom{C+p}{p}\dbinom{C'+p-1}{p-1} and add them up.

~Magnetoninja

Solution 6

We can view the diagram as a collection of points on the complex plane that are connected by transformations/symmetries. The inner circle can be represented as the fifth roots of unity(WLOG let AA correspond to 11) where moving between the inner circle can be mapped to multiplying by e2iπ5e^{\frac{2i\pi}{5}} we can also view moving between circles as a multiplying by e2iπ=1.-e^{-2i\pi} = -1.

Therefore the generating function for the paths beginning at 11 or AA can be seen as (e2iπ51)15.(e^{\frac{2i\pi}{5}} - 1)^{15}.

We want the positive real terms or the ones that end on 11 and those add up to (155)(e2iπ/5)5(1)10+(1515)(e2iπ/5)15=3004004(mod1000).\dbinom{15}{5}(e^{2i\pi/5})^5(-1)^{10} + \dbinom{15}{15}(e^{2i\pi/5})^{15} = 3004 \equiv \boxed{004} \pmod{1000}.

~SailS

Solution 7 (Official MAA, clarified)

Our motivation is that moving along the outer circle "counters" moving along the inner circle in terms of angular position. Hence, denote II as moving along the inner circle OR moving from the outside circle to the inner circle. Also denote OO as moving along the outer circle OR moving from the inside circle to the outside circle.

Notice that eventually, moves that go from the inner circle to the outer circle must equal to moves that go from the outer circle from the inner circle. This is because we must always end up at the inner circle at the last move, meaning that every time we moved to the outer circle, we must have also eventually moved back to the inner circle.

With this in mind, we can now "ignore" moving between inner and outer circle. We find that OI(mod5)O \equiv I \pmod 5, since we must end up at our original angular position, and taking 5 moves in one direction lands us back in the same position.

Using this fact, we form 33 cases:

OI=5O - I = 5, O+I=15O + I = 15 which gives us O=10O = 10. Since we have 1010 OOs and 55 IIs, but the last move must be an II, we have (1410)=1001\binom{14}{10}=1001 ways for this case.

OI=5O - I = -5, O+I=15O + I = 15 which gives us O=5O = 5. We have (145)=2002\binom{14}{5}=2002 ways for this case.

OI=15O - I = -15, O+I=15O + I = 15 which gives us O=0O = 0. (aka only moving in the inner circle). We have (140)=1\binom{14}{0}=1 ways for this case.

Ultimately, the total number of ways is 1001+2002+1=30041001 + 2002 + 1 = 3004, and our answer is 004\boxed{004}.

~xHypotenuse