# Prove that ${f_n}$ converges uniformly to f [duplicate]

Let $f:\mathbb{R}→\mathbb{R}$ be uniformly continuous; let $\{y_n\}⊂\mathbb{R}$ be such that $\lim y_n=0$; and define the sequence $f_n:\mathbb{R}→\mathbb{R}$ by $f_n(x)=f(x+y_n)$. Prove that ${f_n}$ converges uniformly to $f$.
Let $\varepsilon > 0$. Since $f$ is uniformly continuous, there exists $\delta > 0$ such that for all $x,y \in \Bbb R$, $|x - y| < \delta$ implies $|f(x) - f(y)| < \varepsilon$. As $\lim y_n = 0$, there exists a positive integer $N$ such that $|y_n| < \delta$ for all $n \ge N$. So for $n \ge N$ and $x\in \Bbb R$, $|(x + y_n) - x| = |y_n| < \delta$, which implies $|f_n(x) - f(x)| = |f(x + y_n) - f(x)| < \varepsilon$. Since $\varepsilon$ was arbitrary, $f_n$ converges uniformly to $f$.