Two squirrels, Bushy and Jumpy, have collected walnuts for the winter. Jumpy numbers the walnuts from through , and digs little holes in a circular pattern in the ground around their favourite tree. The next morning Jumpy notices that Bushy had placed one walnut into each hole, but had paid no attention to the numbering. Unhappy, Jumpy decides to reorder the walnuts by performing a sequence of moves. In the -th move, Jumpy swaps the positions of the two walnuts adjacent to walnut .
Prove that there exists a value of such that, on the -th move, Jumpy swaps some walnuts and such that .
There exists with such that walnut 's neighbors satisfy .
There exists with such that walnut 's neighbors satisfy .
There exists with such that walnut 's neighbors satisfy .
There exists with such that walnut 's neighbors satisfy .
Hint 1: For each walnut , its two circular neighbors are some and . Classify: both , both , or one on each side. You need to find a 'crossing' case.
Hint 2: Count where is the number of neighbors less than . Each circular adjacency pair with contributes 1 to and 1 to .
Hint 3: If no has , then each , making even. But (number of adjacencies). Contradiction!
Step 1 (Setup): Walnuts are placed in 2021 holes on a circle. At step , the two walnuts adjacent to walnut on the circle are swapped.
Step 2 (Classify each swap): At step , let the neighbors of walnut be and . The swap is of type:
"good" if (what we want to find),
"ascending" if ,
"descending" if .
Step 3 (Monovariant approach): Consider the number of inversions in the circular permutation (pairs where appears before in clockwise order). Each "ascending" swap changes the inversion count by , as does each "descending" swap. A "good" swap also changes it by .
Step 4 (Parity/counting argument): Consider the sum where if the swap at step is "good" and otherwise. If no good swap exists, then every step has both neighbors on the same side of . But this leads to a contradiction: the permutation structure on a circle requires that as traverses , the neighbors must "cross" at some point, since the walnuts wrap around the circle.
Step 5 (Formal proof): For each , let = number of neighbors of that are , and = number that are . We need for some . Since walnut has exactly 2 neighbors: . We want to exclude for all .
But (each adjacency contributes 1 to and 1 to ). If for all , then each contributes either 0 or 2 to . So is even. But total number of adjacencies with = total adjacencies = 2021. Contradiction since 2021 is odd.
Ready to track your progress and master these topics?
Create a free account