MathLabs

Problem 5

Two squirrels, Bushy and Jumpy, have collected 20212021 walnuts for the winter. Jumpy numbers the walnuts from 11 through 20212021 and digs 20212021 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 20212021 moves. In the kk-th move, Jumpy swaps the positions of the two walnuts adjacent to walnut kk. Prove that there exists a value of kk such that, on the kk-th move, Jumpy swaps some walnuts aa and bb with a<k<ba<k<b.
Step 3 of 5: Track maximal blocks of black walnuts
2021−1=2020 black walnuts remain after move 12021-1=2020\ \text{black walnuts remain after move } 1
Detailed analysis

Consider the maximal blocks of consecutive black walnuts around the circle. After the first move, exactly one walnut is red, leaving a single block of 20202020 (an even number) consecutive black walnuts.