I encountered this problem on a graduate school entrance test :
Let $\{f_n\}$ be a sequence of real-valued continuous functions on $\mathbb{R}$ such that $$f_n\left(x + \frac{1}{n}\right) = f_n(x) \hspace{2mm} \forall \hspace{2mm} x \in \mathbb{R} \text{ and } n \in \mathbb{N}.$$ Suppose $f:\mathbb{R} \to \mathbb{R}$ is such that $\{f_n\}$ converges uniformly to $f$ on $\mathbb{R}$, then show that $f$ is a constant function.
My attempt :
Let $x,y \in \mathbb{R}$ and $\epsilon >0$ be arbitrary. It suffices to show that $|f(x) - f(y)| < \epsilon$. By triangle inequality, given any $n \in \mathbb{N}$ : $$|f(x) - f(y)| \leq |f(x) - f_n(x)| + |f_n(x) - f_n(y)| + |f_n(y) - f(y)|$$ By uniform convergence, $\exists$ $N \in \mathbb{N}$ such that $|f(x) - f_n(x)| < \epsilon/3$ and $|f(y) - f_n(y)| < \epsilon/3 $ whenever $n > \mathbb{N}$.
So, now it suffices to show that $|f_n(x) - f_n(y)| \to 0$. Now comes the confusing part :
- I fix an $n$.
- Continuity of $f_n$ implies that existence of $\delta >0$ such that $|f_n(t)-f_n(y)| < \epsilon$ whenever $|t-y|<\delta$.
- Find $n'$ such that $\frac{1}{n'} < \delta$. Then, $\exists$ $k \in \mathbb{N}$ such that $\left|\left(x+\frac{k}{n'}\right) - y\right| < \delta$.
- But now I can't say that $|f_{n'}(x)-f_{n'}(y)| = |f_{n'}(x+\frac{k}{n'})-f_{n'}(y)| < \epsilon$ as $f_{n'}$ might require a smaller $\delta'$ than $f_n$.
I hope I have made my point clear. If not, feel free to ignore my attempt and post your own solution.
Any help/hints shall be highly appreciated.
For any $q= a/b\in \Bbb Q,$ with $a\in\Bbb Z$ and $b\in\Bbb N,$ for any $n\in \Bbb N$ we have $$\forall j\in\Bbb Z\,(\,f_{nb}(j/nb)=f_{nb}((j+1)/nb)\,)$$ so $f_{nb}(0)=f_{nb}(a/b)=f_{nb}(q).$ Therefore $$f(0)=\lim_{n\to\infty} f_{nb}(0)=\lim_{n\to\infty}f_{nb}(q)=f(q).$$ So $f$ is constant on $\Bbb Q.$ Now $f_m\to f$ uniformly, and each $f_m$ is continuous, so $f$ is continuous. So $f$ is continuous and $f$ is constant on $\Bbb Q$ so $f$ is constant.