Let $f:\mathbb R \to \mathbb R$ be a function such that for any irrational number $r$ and any real number $x$ we have $f(x)=f(x+r)$. Show that $f$ is a constant function.
It's easy to see any constant function satisfies the original property. But I don't see how to show this is the only solution.
If $y$ is irrational, the set $x = 0$, $r = y$ to get $f(y) = f(0)$.
If $y$ is rational, then set $x = y$, $r = \pi-y$ to get $f(y) = f(\pi)$
But by the first statement, $f(\pi) = f(0)$. Hence, $f$ is constant.