BMO2 · 2022/23 · 2023-01-25 · Question 2
Problem outline
Start with the ordered list , where . Two moves are allowed: rotate three consecutive entries to when , or interchange two consecutive entries when . Determine exactly when the list can be transformed into .
Show answer and methods 1 methods
Answer
Exactly the integers or .
Method 1 Construct by induction and obstruct the remaining residue class
For , apply the three-entry rotation twice to obtain . For , rotate the last triple twice to obtain , then interchange and , whose difference is divisible by .
Suppose , or , and the claim is known for . Rotate the final triple twice, moving to the first place within that triple. Then interchange the adjacent entries . The list now begins and ends .
The rules depend only on residues modulo , and . Relabel the last entry of the displayed prefix as and apply the induction hypothesis to its first positions. This moves to the front and yields the desired list. Hence every works.
For necessity, if the entries occupy positions , put modulo . Interchanging adjacent changes by , and rotating an allowed triple changes it by . Thus both permitted moves preserve .
Moving from to changes by . If , this is non-zero modulo , contradicting invariance. Therefore no such works, completing the classification.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)