For a positive integer plot equally spaced points around a circle. Label one of them , and place a marker at . One may move the marker forward in a clockwise direction to either the next point or the point after that. Hence there are a total of distinct moves available; two from each point. Let count the number of ways to advance around the circle exactly twice, beginning and ending at , without repeating a move. Prove that for all .
(This problem was suggested by Sam Vandervelde.)
Solutions — 4
Solution 1
Solution 1 (By Sam Vandervelde). We will show that . This would be sufficient, since then we would have
Lemma 1. For all positive integers , we have
Proof. We argue by strong induction. To begin, the cases and are quickly verified. Now suppose that is odd, say . We find that
We now determine the number of ways to advance around the circle twice, organizing our count according to the points visited both times around the circle. It is straight-forward to check that no two such points may be adjacent, and that there are exactly two sequences of moves leading from any such point to the next. (These sequences involve only moves of length two except possibly at the endpoints.) Hence given points around the circle, no two adjacent and not including point , there would appear to be ways to traverse the circle twice without repeating a move. However, half of these options lead to repeating the same route twice, giving ways in actuality. There are ways to select nonadjacent points on the circle not including (add an extra point behind each of chosen points), for a total contribution of
where we used Lemma 1 in the last step.
On the other hand, if the nonadjacent points do include point then there are ways to choose them around the circle. (Select but not the next point, then add an extra point after each of selected points.) But now there are actually ways to circle twice, since we can choose either move at and the subsequent points, then select the other options the second time around. Hence the contribution in this case is
where we again used Lemma 1.
Finally, if is odd then there is one additional way to circle in which no point is visited twice by using only steps of length two, giving a contribution of . Therefore the total number of paths is
which simplifies to , as desired.
Solution 2
Solution 2 (By Kiran Kedlaya). We give a bijective proof of the identity
which immediately implies that . Since trivially (or alternatively ), the desired identity will then follow by induction on .
To construct the bijection, it is convenient to introduce some alternate representations for the sequences we are counting. Label the points in order, and define . One can then represent the sequences to be counted by listing the sequence of vertices visited by the marker, with the conventions that , and for . One can represent such sequences of vertices in turn by matrices by setting
Such a matrix corresponds to a valid sequence if and only if (so the sequence of steps starts and ends at ), (so the sequence of steps is well-defined at ), and there are no submatrices of any of the forms
to exclude steps of length greater than 2, duplication of a length 2 step, and duplication of a length 1 step. For example, the valid sequences for are represented by the matrices
Let be the set of valid matrices. The correspondence can then be described by replacing the right end of the matrix in the following fashion, where represents any row of length .
From this description, it is easy to see that passing from one side to the other preserves the boundary condition and the excluded submatrix conditions (because every submatrix whose entries are not all shown remains unchanged). We thus have the claimed bijection.
Solution 3
Solution 3 (By Kiran Kedlaya). We maintain the notation used in the second solution.
We first solve a related but simpler counting problem. Let be the set of sequences of steps of lengths 1 or 2 of total length . For each sequence , let be the number of steps of length 2 in and define . It is clear that . For , we also have
by counting sequences of length according to whether they end in a step of length 1 or 2. Thus
from which it follows by induction on that for . Again by induction on , we find that
We now write in terms of . Label the points of the circle as in the previous solution. We may separate sequences of moves into three types.
1. Sequences that visit but not . Such a sequence starts with some followed by a step of length 2. The number of complements for (i.e., the number of ways to complete it to a full sequence) can be seen to be as follows. If we decide in order whether to skip each of , then the choice for is uniquely forced if and unrestricted if . In the notation of the previous solution, we may see this by noting that
(This logic does not apply to : we have but must take .) We thus get sequences of this type.
2. Sequences that visit but not . Such a sequence starts with some followed by a step of length 2. There are sequences of this type.
3. Sequences that visit both and . Such a sequence starts with some followed by a step of length 1. Here the count is complicated by the constraint that we must skip , so the final step of length 2 does not create an option. Therefore, contributes complements if . The only case where is when consists of only steps of length 1, in which case we get 1 complement if is even and 0 complements if is odd.
Putting this together, we get
and so as desired.
Solution 4
Solution 4 (By Ricky Liu). We again show that . First, we claim that for two paths to travel between points apart () such that no point in between the endpoints is in both paths and no move is used twice, one path must hit the odd intermediate points and the other must hit the even ones. Indeed, neither path can skip two consecutive points, hence neither can contain two consecutive points which are not endpoints, yielding the desired classification. Therefore, given an interval of length with both endpoints hit both times around, but no point in between them hit both times around, there are exactly 2 ways to choose the sections of the path between the two endpoints (by choosing whether the odd or even points are hit first). We conclude that the generating function for choices of paths between points apart which are hit both times around is
Any pair of paths that start and end at the same point such that no move is used more than once are a concatenation of some number of the paths above, hence the generating function for choices of such paths is
Note that the coefficient of in counts the number of solution paths that stop at the first time around.
Now, any solution path that does not stop at A the first time around either (A) does not stop at any point twice or (B) has a first point and a last point where it stops twice (where possibly ). Case (A) is only possible if all moves have length 2 and is odd, so it has generating function . For Case (B), a similar argument to the first shows that the part of the path outside of the interval is uniquely determined. The generating function for the number of such paths is
where the first term comes from the part before and the part after and the second term from the interval between and .
Adding up our generating functions in each case, we find that the generating function for paths of the desired form is
Then is the coefficient of in this expression, which is given by