Show that there does not exist a function $f:\mathbb{Z}\to \{1,2,3\}$ satisfying $f(x)\neq f(y)$ for all $x,y\in \mathbb{Z}$ such that $|x-y|\in \{2,3,5\}$.
Proof: Suppose by contradiction that such function exists and denote it by $f(x)$. Let $f(0)=a, f(2)=b, f(5)=c$ and then $a\neq b, a\neq c, b\neq c$ and also $a,b,c\in \{1,2,3\}$ and WLOG we put that $a=1, b=2, c=3$.
Consider $f(3)$ and since $f(3)\neq 1, f(3)\neq 3$ then $f(3)=2$.
Similarly, considering $f(7)$ and since $f(7)\neq 2, f(7)\neq 3$ then $f(7)=1$.
Also $f(8)\neq f(3)=2, f(8)\neq f(5)=3$ then $f(8)=1$.
Also $f(6)\neq f(3)=2, f(6)\neq f(8)=1$ and hence $f(6)=3$.
Finally, examining $f(4)$ we see that $f(4)\neq f(2)=2$ and $f(4)\neq f(6)=3$ and so $f(4)=1$. But $f(4)\neq f(7)=1$ and here is a contradiction.
Is it suitable proof?