MathDB
Problems
Contests
National and Regional Contests
Korea Contests
Korea Junior Mathematics Olympiad
2023 Korea Junior Math Olympiad
5
5
Part of
2023 Korea Junior Math Olympiad
Problems
(1)
Stone swap
Source: KJMO 2023 P5
11/4/2023
For a positive integer
n
(
≥
5
)
n(\geq 5)
n
(
≥
5
)
, there are
n
n
n
white stones and
n
n
n
black stones (total
2
n
2n
2
n
stones) lined up in a row. The first
n
n
n
stones from the left are white, and the next
n
n
n
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
k
(
≤
2
n
−
5
)
k (\leq 2n - 5)
k
(
≤
2
n
−
5
)
, and swap
k
k
k
-th stone and
(
k
+
5
)
(k+5)
(
k
+
5
)
-th stone from the left.Find all positive integers
n
n
n
such that we can make first
n
n
n
stones to be black and the next
n
n
n
stones to be white in finite number of operations.
combinatorics