Question from Engel's book problem solving strategies.
Let $p$ and $q$ be fixed integers. The set of integers are to be partitioned into three subsets $A,B,C$ such that for any $n \in \mathbb{Z}$, the three integers $n, n+p$ and $n+q$ belong to different subsets. What conditions must $p$ and $q$ satisfy?
I have hardly any idea how to do this question.
Maybe can see it as a graph, and each vertex is a number, and from vertex $n$, there is an edge going to vertices $n-p, n-q, n+p, n+q$, and we are looking for a 3-coloring?
A easy case is if the pattern is somehow regular, like $p=2,q=4$, then we can partition as $\{0,1,6,7 \dots\}, \{2,3,8,9,\dots\},\{4,5,10,11\dots\}$
