Difference between revisions of "2018 AIME I Problems/Problem 10"
m |
Xhypotenuse (talk | contribs) |
||
(97 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
− | 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 <math>A</math>. 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 <math>AJABCHCHIJA</math>, which has <math>10</math> steps. Let <math>n</math> be the number of paths with <math>15</math> steps that begin and end at point <math>A</math>. Find the remainder when <math>n</math> is divided by <math>1000</math> | + | |
+ | ==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 <math>A</math>. 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 <math>AJABCHCHIJA</math>, which has <math>10</math> steps. Let <math>n</math> be the number of paths with <math>15</math> steps that begin and end at point <math>A</math>. Find the remainder when <math>n</math> is divided by <math>1000.</math> | ||
<center><asy> | <center><asy> | ||
unitsize(32); | unitsize(32); | ||
Line 33: | Line 35: | ||
label("$J$", (2+r) * dir( 90), dir( 90)); | label("$J$", (2+r) * dir( 90), dir( 90)); | ||
</asy></center> | </asy></center> | ||
− | ==Solution== | + | |
+ | ==Solution 1== | ||
We divide this up into casework. The "directions" the bug can go are <math>\text{Clockwise}</math>, <math>\text{Counter-Clockwise}</math>, and <math>\text{Switching}</math>. Let an <math>I</math> signal going clockwise (because it has to be in the ''inner'' circle), an <math>O</math> signal going counter-clockwise, and an <math>S</math> switching between inner and outer circles. An example string of length fifteen that gets the bug back to <math>A</math> would be <math>ISSIIISOOSISSII</math>. | We divide this up into casework. The "directions" the bug can go are <math>\text{Clockwise}</math>, <math>\text{Counter-Clockwise}</math>, and <math>\text{Switching}</math>. Let an <math>I</math> signal going clockwise (because it has to be in the ''inner'' circle), an <math>O</math> signal going counter-clockwise, and an <math>S</math> switching between inner and outer circles. An example string of length fifteen that gets the bug back to <math>A</math> would be <math>ISSIIISOOSISSII</math>. | ||
For the bug to end up back at <math>A</math>, the difference between the number of <math>I</math>'s and <math>O</math>'s must be a multiple of <math>5</math>. | For the bug to end up back at <math>A</math>, the difference between the number of <math>I</math>'s and <math>O</math>'s must be a multiple of <math>5</math>. | ||
Line 57: | Line 60: | ||
− | So, the total number of ways is <math>1+2002+1001= | + | So, the total number of ways is <math>1+2002+1001=3004</math> which gives <math>\boxed{004}</math> as the answer. |
== Solution 2 (Official MAA)== | == 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 <math>X</math>s and <math>Y</math>s of length <math>15</math>, where <math>X</math> denotes a move which is either counterclockwise or inward along a spoke and <math>Y</math> 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 <math>X</math>s and the number of <math>Y</math>s is a multiple of <math>5</math>, and so we must have either <math>4</math>, <math>9</math>, or <math>14</math> <math>X</math>s within the first fourteen moves with the last move being an <math>X</math>. This implies the answer is <cmath>\binom{14}4+\binom{14}9+\binom{14}{14} = 3004\equiv \boxed{004}\pmod{1000}.</cmath> | Note that the set of sequences of moves the bug makes is in bijective correspondence with the set of strings of <math>X</math>s and <math>Y</math>s of length <math>15</math>, where <math>X</math> denotes a move which is either counterclockwise or inward along a spoke and <math>Y</math> 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 <math>X</math>s and the number of <math>Y</math>s is a multiple of <math>5</math>, and so we must have either <math>4</math>, <math>9</math>, or <math>14</math> <math>X</math>s within the first fourteen moves with the last move being an <math>X</math>. This implies the answer is <cmath>\binom{14}4+\binom{14}9+\binom{14}{14} = 3004\equiv \boxed{004}\pmod{1000}.</cmath> | ||
+ | |||
+ | ==Solution 3 (Similar To Solution 2 But Modified To Clarify)== | ||
+ | Let an <math>O</math> signal a move that ends in the outer circle and <math>I</math> signal a move that ends in the inner circle. Now notice that for a string of <math>15</math> moves to end at <math>A</math>, the difference between <math>O</math>'s and <math>I</math>'s in the string must be a multiple of <math>5</math>. | ||
+ | |||
+ | <math>15</math> <math>I</math>'s: Trivially <math>1</math> case. | ||
+ | |||
+ | <math>5</math> <math>O</math>'s and <math>10</math> <math>I</math>'s: Since the string has to end in an <math>I</math> for the bug to land on <math>A</math>, there are a total of <math>\binom{14}{5}=2002</math> ways to put <math>5</math> <math>O</math>'s in the first <math>14</math> moves. | ||
+ | |||
+ | <math>10</math> <math>O</math>'s and <math>5</math> <math>I</math>'s: Similarly there are <math>\binom{14}{4}=1001</math> ways to put <math>5-1=4</math> <math>I</math>'s in the first <math>14</math> moves. | ||
+ | |||
+ | <math>15</math> <math>O</math>'s: Impossible since the string has to end with an I. | ||
+ | |||
+ | This brings us an answer of <math>1+2002+1001=3004 \equiv \boxed{004} \pmod{1000}</math>. | ||
+ | |||
+ | -Solution by mathleticguyyyyyyyyy- | ||
+ | ~Edited by ike.chen | ||
+ | |||
+ | == Solution 4 (Recursion) == | ||
+ | |||
+ | Define <math>A_n</math> to be the number of sequences of length <math>n</math> that ends at <math>A</math> and similarly for the other spokes. Also let | ||
+ | <cmath>S_n=A_n+B_n+C_n+D_n+E_n+F_n+G_n+H_n+I_n+J_n</cmath> | ||
+ | Apparently everytime the bug has <math>2</math> choices for its next move, thus we have <math>S_n=2^n</math>. Now we attempt to find a recursive formula for <math>A_n</math>. | ||
+ | <cmath>\begin{align*} | ||
+ | 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{align*}</cmath> | ||
+ | Computing a few easy terms we have <math>A_0=0</math>, <math>A_1=0</math>, <math>A_2=1</math>, <math>A_3=0</math>, <math>A_4=3</math>. Continuing the process yields <math>A_{15}=3\boxed{004}</math>. | ||
+ | |||
+ | ~ Nafer | ||
+ | |||
+ | |||
+ | == 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 <math>s</math> times, the number of moves the ant makes is <math>15-s</math>. 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 <math>1</math> 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<math>\pmod{5}</math>. Let the number of counterclockwise moves be <math>C</math> and clockwise moves be <math>C'</math>. The only two feasible solutions for <math>(C,C')</math> are <math>(4,9)</math> and <math>(9,4)</math>. Therefore, we use stars and bars to obtain <math>10+5=15</math> ways for this case. | ||
+ | |||
+ | Case 3: 2 pairs | ||
+ | |||
+ | The ant changes directions 4 times and makes 11 moves, so we obtain <math>(3,8)</math> and <math>(8,3)</math> using similar logic. Using stars and bars once again, we obtain <math>90+180=270</math> ways for this case. | ||
+ | |||
+ | Case 4: 3 pairs | ||
+ | |||
+ | Again, the only solutions for <math>(C,C')</math> are <math>(2,7)</math> and <math>(7,2)</math>. Using stars and bars, we obtain <math>360+720=1080</math>. | ||
+ | |||
+ | Case 5: 4 pairs | ||
+ | |||
+ | The only solutions are <math>(1,6)</math> and <math>(6,1)</math>. Using stars and bars, we obtain <math>840+420=1260</math>. | ||
+ | |||
+ | Case 6: 5 pairs | ||
+ | |||
+ | The only solutions are <math>(0,5)</math> and <math>(5,0)</math>. Using stars and bars, we obtain <math>252+126=378</math>. | ||
+ | Note that there are no more cases since <math>C</math> and <math>C'</math> have to be equivalent<math>\pmod{5}</math>, which would need to make <math>C</math> or <math>C'</math> negative. Adding all the cases, we get <math>1+15+270+1080+1260+378=3004</math>. Taking modulo <math>1000</math>, we obtain <math>3004 \equiv \boxed{004} \pmod{1000}</math> | ||
+ | |||
+ | |||
+ | The process of using stars and bars was the number of ways to group the counterclockwise and clockwise moves. For instance, if there are <math>p</math> pairs of switches, then based on the solutions for <math>(C,C')</math>, we can divide <math>C</math> into <math>p+1</math> subsets and <math>C'</math> into <math>p</math> subsets. This is equivalent to putting <math>C</math> objects in <math>p+1</math> bins and <math>C'</math> objects into <math>p</math> bins where a bin can be empty which is modeled by consecutive switches. Then, we multiply both results. Therefore, for each <math>p</math>, we compute <math>\dbinom{C+p}{p}\dbinom{C'+p-1}{p-1}</math> and add them up. | ||
+ | |||
+ | ~[https://artofproblemsolving.com/wiki/index.php/User:Magnetoninja Magnetoninja] | ||
+ | |||
+ | ==Solution 6(Generating Functions???)== | ||
+ | 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 <math>A</math> correspond to <math>1</math>) where moving between the inner circle can be mapped to multiplying by <math>e^{\frac{2i\pi}{5}}</math> we can also view moving between circles as a multiplying by <math>-e^{-2i\pi} = -1.</math> | ||
+ | |||
+ | Therefore the generating function for the paths beginning at <math>1</math> or <math>A</math> can be seen as <math>(e^{\frac{2i\pi}{5}} - 1)^{15}.</math> | ||
+ | |||
+ | We want the positive real terms or the ones that end on <math>1</math> and those add up to <math>\dbinom{15}{5}(e^{2i\pi/5})^5(-1)^{10} + \dbinom{15}{15}(e^{2i\pi/5})^{15} = 3004 \equiv \boxed{004} \pmod{1000}.</math> | ||
+ | |||
+ | ~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 <math>I</math> as moving along the inner circle OR moving from the outside circle to the inner circle. Also denote <math>O</math> 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 <math>O \equiv I \pmod 5</math>, 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 <math>3</math> cases: | ||
+ | |||
+ | |||
+ | <math>O - I = 5</math>, <math>O + I = 15</math> which gives us <math>O = 10</math>. Since we have <math>10</math> <math>O</math>s and <math>5</math> <math>I</math>s, but the last move must be an <math>I</math>, we have <math>\binom{14}{10}=1001</math> ways for this case. | ||
+ | |||
+ | <math>O - I = -5</math>, <math>O + I = 15</math> which gives us <math>O = 5</math>. We have <math>\binom{14}{5}=2002</math> ways for this case. | ||
+ | |||
+ | <math>O - I = -15</math>, <math>O + I = 15</math> which gives us <math>O = 0</math>. (aka only moving in the inner circle). We have <math>\binom{14}{0}=1</math> ways for this case. | ||
+ | |||
+ | |||
+ | Ultimately, the total number of ways is <math>1001 + 2002 + 1 = 3004</math>, and our answer is <math>\boxed{004}</math>. | ||
+ | |||
+ | |||
+ | ~xHypotenuse | ||
+ | |||
==See Also== | ==See Also== | ||
{{AIME box|year=2018|n=I|num-b=9|num-a=11}} | {{AIME box|year=2018|n=I|num-b=9|num-a=11}} | ||
{{MAA Notice}} | {{MAA Notice}} |
Latest revision as of 00:30, 1 August 2024
Contents
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 . 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 , which has steps. Let be the number of paths with steps that begin and end at point . Find the remainder when is divided by
Solution 1
We divide this up into casework. The "directions" the bug can go are , , and . Let an signal going clockwise (because it has to be in the inner circle), an signal going counter-clockwise, and an switching between inner and outer circles. An example string of length fifteen that gets the bug back to would be . For the bug to end up back at , the difference between the number of 's and 's must be a multiple of .
- Case 1 -- There are 15 more 's than 's.
- There is clearly way for this to happen.
- Case 2 -- There are more 's than 's.
- We split this case up into several sub-cases based on the number of 's.
- Sub-case 1 -- There are 's and 's.
- Notice that the number of ways to order the 's and 's are independent assortments because the 's must be in the "even" spaces between 's (i.e. before the 1st , between the 2nd and 3rd 's, etc.), while the 's must be in the "odd" spaces.
- There are places to put the 's (after the 0th, 2nd, 4th, 6th, 8th, and 10th 's), and places to put the (0) 's. We use stars and bars to get an answer of
- Sub-case 2 -- There are 's, 's, and .
- Similarly and by using stars and bars, we get an amount of
- All the other sub-cases are similar, with a total of by Vandermonde's Identity.
- Case 3 -- There are more 's than 's.
- This case is similar to the other case.
- Here is an example of a sub-case for this case.
- Sub-case
- There are 's and 's.
- There are ways to do this.
- We can see now that the pattern is going to be .
So, the total number of ways is which gives 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 s and s of length , where denotes a move which is either counterclockwise or inward along a spoke and 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 s and the number of s is a multiple of , and so we must have either , , or s within the first fourteen moves with the last move being an . This implies the answer is
Solution 3 (Similar To Solution 2 But Modified To Clarify)
Let an signal a move that ends in the outer circle and signal a move that ends in the inner circle. Now notice that for a string of moves to end at , the difference between 's and 's in the string must be a multiple of .
's: Trivially case.
's and 's: Since the string has to end in an for the bug to land on , there are a total of ways to put 's in the first moves.
's and 's: Similarly there are ways to put 's in the first moves.
's: Impossible since the string has to end with an I.
This brings us an answer of .
-Solution by mathleticguyyyyyyyyy- ~Edited by ike.chen
Solution 4 (Recursion)
Define to be the number of sequences of length that ends at and similarly for the other spokes. Also let Apparently everytime the bug has choices for its next move, thus we have . Now we attempt to find a recursive formula for . Computing a few easy terms we have , , , , . Continuing the process yields .
~ Nafer
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 times, the number of moves the ant makes is . 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 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. Let the number of counterclockwise moves be and clockwise moves be . The only two feasible solutions for are and . Therefore, we use stars and bars to obtain ways for this case.
Case 3: 2 pairs
The ant changes directions 4 times and makes 11 moves, so we obtain and using similar logic. Using stars and bars once again, we obtain ways for this case.
Case 4: 3 pairs
Again, the only solutions for are and . Using stars and bars, we obtain .
Case 5: 4 pairs
The only solutions are and . Using stars and bars, we obtain .
Case 6: 5 pairs
The only solutions are and . Using stars and bars, we obtain . Note that there are no more cases since and have to be equivalent, which would need to make or negative. Adding all the cases, we get . Taking modulo , we obtain
The process of using stars and bars was the number of ways to group the counterclockwise and clockwise moves. For instance, if there are pairs of switches, then based on the solutions for , we can divide into subsets and into subsets. This is equivalent to putting objects in bins and objects into bins where a bin can be empty which is modeled by consecutive switches. Then, we multiply both results. Therefore, for each , we compute and add them up.
Solution 6(Generating Functions???)
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 correspond to ) where moving between the inner circle can be mapped to multiplying by we can also view moving between circles as a multiplying by
Therefore the generating function for the paths beginning at or can be seen as
We want the positive real terms or the ones that end on and those add up to
~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 as moving along the inner circle OR moving from the outside circle to the inner circle. Also denote 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 , 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 cases:
, which gives us . Since we have s and s, but the last move must be an , we have ways for this case.
, which gives us . We have ways for this case.
, which gives us . (aka only moving in the inner circle). We have ways for this case.
Ultimately, the total number of ways is , and our answer is .
~xHypotenuse
See Also
2018 AIME I (Problems • Answer Key • Resources) | ||
Preceded by Problem 9 |
Followed by Problem 11 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.