2018 AIME I Problems/Problem 10
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 circular clockwise 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
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 [i]inner[/i] 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 then 's.
There is clearly way for this to happen.
Case 2: There are more 's then '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