Question 5Find the smallest positive integer $k$ for which a function $f:\mathbb Z\to\{1,2,\ldots,k\}$ exists satisfying $f(x)\ne f(y)$ whenever $|x-y|\in\{5,7,12\}$.