MathLabs

Problem 2

Let nn and kk be relatively prime positive integers with k<nk < n. The set M={1,2,…,n−1}M = \{1, 2, \ldots, n-1\} is colored so that each number is either blue or white, subject to: (i) for each i∈Mi \in M, the numbers ii and n−in-i have the same color; and (ii) for each i∈Mi \in M with i≠ki \ne k, the numbers ii and ∣i−k∣|i-k| have the same color. Prove that all the numbers in MM must have the same color.
Step 5 of 5: Chain the equalities across the whole cycle
In plain words

Once every consecutive pair along the cycle is forced to match, the whole cycle collapses to a single color, the same way a chain of dominoes toppling one after another ends up all lying the same way.

color(r1)=color(r2)=⋯=color(rn−1)\text{color}(r_1)=\text{color}(r_2)=\cdots=\text{color}(r_{n-1})
Detailed analysis

Steps 3–4 show color(ri)=color(ri+1)\text{color}(r_i)=\text{color}(r_{i+1}) for every i=1,…,n−2i=1,\dots,n-2. Chaining these n−2n-2 equalities shows all of r1,…,rn−1r_1,\dots,r_{n-1} share one color. Since these are exactly the elements of MM (each appearing once, by Step 1), every number in MM has the same color.