Stone swap
Source: KJMO 2023 P5
November 4, 2023
combinatorics
Problem Statement
For a positive integer , there are white stones and black stones (total stones) lined up in a row. The first stones from the left are white, and the next stones are black. \underbrace{\Circle \Circle \cdots \Circle}_n \underbrace{\CIRCLE \CIRCLE \cdots \CIRCLE}_n
You can swap the stones by repeating the following operation.(Operation) Choose a positive integer , and swap -th stone and -th stone from the left.Find all positive integers such that we can make first stones to be black and the next stones to be white in finite number of operations.