Problem

Source: 2017 Taiwan TST 2nd round day 2 P4

Tags: function, algebra, combinatorics, number theory, functional equation



Find all integer $c\in\{0,1,...,2016\}$ such that the number of $f:\mathbb{Z}\rightarrow\{0,1,...,2016\}$ which satisfy the following condition is minimal: (1) $f$ has periodic $2017$ (2) $f(f(x)+f(y)+1)-f(f(x)+f(y))\equiv c\pmod{2017}$ Proposed by William Chao