The function $f(x) = e^{2\pi ix}$ on the domain $\mathbb{R}/\mathbb{Z}$ has the property that, for every $n > 1$ and every $x$, $\displaystyle \sum_{i = 0}^{n-1} f(x + \frac{i}{n}) = 0$.
Other such functions can be found by simply postcomposing a linear function to this example (thus, for example, $x \mapsto \cos(2\pi x) : \mathbb{R}/\mathbb{Z} \to \mathbb{R}$ also has this property).
Beyond those, are there any other "natural" examples of functions with this property (on the same domain $\mathbb{R}/\mathbb{Z}$, but with any codomain)?
[Of course, one can freely construct the codomain as a monoid with generators $\mathbb{R}/\mathbb{Z}$ and all the necessary relations; slightly less trivially, one could take the codomain to be a ring, the map to be exponential, and $f(\frac{1}{n}) - 1$ to be invertible for each prime $n$, in the same freely constructed fashion. I can't quite put my finger on why, but I don't want to count these as "natural" examples (probably because the condition for each (or essentially each) distinct $n$ is handled separately, instead of flowing all at once from some underlying property)]