Uniformly continuity of a real valued function $f$ 
Let $f:\mathbb{R}\to \mathbb{R}$ be a function given by $f(x)=\sum_{k=1}^\infty \frac{g(x-k)}{2^k}$ 
  where $g:\mathbb{R}\to \mathbb{R}$ is a uniformly continuous function such that the series converges for each $x$ belongs to $\mathbb{R}$.
  Then show that $f$ is uniformly continuous.

How I show this. Please help me to solve this.

Let $f:\mathbb{R}\to \mathbb{R}$ be a function given by $f(x)=\sum_{k=1}^\infty \frac{g(x-k)}{2^k}$ 
where $g:\mathbb{R}\to \mathbb{R}$ is a uniformly continuous function such that the series converges for each $x$ belongs to $\mathbb{R}$.
Let $\varepsilon >0$ since $g $ is uniformly continuous there is $\delta >0$ such that for every $x,y\in\mathbb R$ if $|x-y|<\delta$ then 
$$ |g(x)-g(y)|< \varepsilon $$
Accordingly, if $ |y-x|<\delta$ then for every  $k\ge 0$ $|(x-k)-(y-k)|= |x-y|< \delta $ that is $$|g(x-k) -g(y-k)|<\varepsilon $$
Therefore
$$ |f(x) -f(y)|\le \sum_{k=1}^\infty \frac{|g(x-k) -g(y-k)|}{2^k} < \varepsilon \sum_{k=1}^\infty \frac{1}{2^k} = \varepsilon $$
