Problem(IMO 1985 P2): Let $n$ and $k$ be relatively prime positive integers with $k<n$. Each number in the set $M=\{1,2,3,\ldots,n-1\}$ is colored either blue or white. For each $i$ in $M$, both $i$ and $n-i$ have the same color. For each $i\ne k$ in $M$ both $i$ and $|i-k|$ have the same color. Prove that all numbers in $M$ must have the same color.
My Progress: Consider any natural number $i<n$. Then we know that $(i,n-i,|i-k|)$ have the same color. I considered $(i,n-i,|i-k|)$ as a vector so it represents a point in Cartesian space with positive integer coordinates. So we are considering $(n-2)$ such points. We say that two points are connected iff the vectors have at least one component common(So $(1,11,4)$ and $(4,8,1)$ are connected). And we intend to prove that all this points are of the same color or in graph theoretic analog we want to prove that the graph $G$ with $V(G)=n-2$ is connected. And this where I am stuck. I have been able to prove that all the vertices have degree at least $2$. But this is not enough to prove that the graph is connected.
So in short: I need help to prove that the graph is connected.
Please don't give out the solution, rather give me hints first.
Thank you.
I just pulled out my original solution as submitted back then in Joutsa, Finland:
We define $s\sim t$ to mean that $s$ and $t$ have the same colour
Lemma. If $s,t\in\{1,\ldots,n-1\}$ with $t-s\equiv k\pmod n$, then $s\sim t$.