Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Kevin, an easier trick is to note that the $p_n$ needn't be prime; all they need is to be pairwise coprime. Also $(2x+1)(3y+1)$ does work. It does not represent $0$ but represents all other integers: write $N=2^r a$ where $a$ is odd. Then the $3y+1$ is either $2^r$ or $-2^r$.
Let's try to orient this surface. Suppose that $abc$ "goes clockwise". Then so do $acd$, $ade$, $bed$, $bce$ and $acb$. So $abc$ goes both clockwise and anticlockwise. :-)
Sorry Kevin, you're right. As an alternative, you could let $C_n=p_n^3$ where $p_n$ is the $n$-th prime congruent to $2$ mod $5$ (hmm, this depends on Dirichlet's theorem but I can see how to get round that!)
Wadim, you need to show that either every block of $C$ consecutive integers has an element not in the range of $f$, or that some particular block has all its elements represented (as Kevin does).