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 4 of 5: Second case: bridge with rules (i) and (ii)
In plain words

When the jump wraps around past nn, a direct link isn't available, so the argument takes a detour: reflect rr across nn using rule (i), landing exactly on the number rule (ii) connects to ss.

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

If instead s=r+k−ns=r+k-n, then r=n−(k−s)r=n-(k-s), so n−r=k−sn-r=k-s. Rule (i) gives color(r)=color(n−r)=color(k−s)\text{color}(r)=\text{color}(n-r)=\text{color}(k-s). Rule (ii) applied to i=si=s gives color(s)=color(∣s−k∣)=color(k−s)\text{color}(s)=\text{color}(|s-k|)=\text{color}(k-s) (since s<ks<k here). Chaining the two equalities, color(r)=color(s)\text{color}(r)=\text{color}(s) again.