11. Since 0,1,2,⋯,n−1 form a complete residue system modulo n, and (k,n)=1, it follows that 0,k,2k,⋯,(n−1)k is also a complete residue system modulo n. If we denote ai≡ik(modn),0⩽ai<n, then {a0,a1,⋯,an−1}={0,1,2,⋯,n−1}. Therefore,
{a1,a2,⋯,an−1}={1,2,⋯,n−1}=M
For any i, if 1⩽i⩽n−2, then
ai+1−ai≡(i+1)k−ik=k(modn)
Since 0<ai<n and 0<ai+1<n, it follows that ai+1=ai+k or ai+1=ai+k−n. If ai+1=ai+k, then
ai=ai+1−k=∣k−ai+1∣
By condition (2), ai and ai+1 are the same color. If ai+1=ai+k−n, then
ai+1=∣ai+k−n∣=∣k−(n−ai)∣
By condition (2), ai+1 and n−ai are the same color. If we further use (1), n−ai and ai are the same color, thus ai+1 and ai are also the same color. By sequentially setting i=1,2,⋯,n−2, we obtain the conclusion.