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 3 of 5: First case: direct application of rule (ii)
In plain words

If the second point is simply the first plus a jump of kk, then rule (ii) — which links any number to itself-minus-kk — reads off the same-color fact immediately.

s=r+k ⟹ ∣s−k∣=r ⟹ color(s)=color(r)s=r+k \ \Longrightarrow\ |s-k|=r \ \Longrightarrow\ \text{color}(s)=\text{color}(r)
Detailed analysis

Write r=rir=r_i, s=ri+1s=r_{i+1}. If s=r+ks=r+k then ∣s−k∣=r|s-k|=r, so applying coloring rule (ii) to i=si=s (valid since s≠ks\ne k, as only one index in this construction equals kk) gives directly that ss and r=∣s−k∣r=|s-k| share a color.