Prove/Disprove there exists only one continuous function $f:\mathbb{R} \to \mathbb{Z}$

analysiscontinuityproof-writingreal-analysis

I know that every function $f: \mathbb{Z} \to \mathbb{R}$ is continuous.

This can be proven by Weierstrass' $\varepsilon$$\delta$ criterion. If $f:E\subseteq \mathbb{R} \to \mathbb{R}$ is continuous at $x_0 \in E$, then $$\forall \varepsilon > 0 \exists \delta > 0 \forall x \in E \left( \left| x – x_0\right| < \delta \to \left| f(x) – f(x_0)\right| < \varepsilon \right)$$ Let $E := \mathbb{Z}$ and $\varepsilon > 0$, $x_0 \in E$ be fixed. Taking $\delta := 1$, we get, that the only point which fulfills $\left| x – x_0\right| < \delta$ is $x_0$ itself, but then trivially $$\left| f(x_0) – f(x_0)\right| = 0 < \varepsilon$$ holds. Since $x_0 \in E$ was arbitrary, $f$ is continuous on $E$.

But how can one prove/disprove that there exists only one continuous function:

$$f:\mathbb{R} \to \mathbb{Z}$$

Best Answer

Hint: Is it not the case that $f:\mathbb{R}\to \mathbb{Z}$ given by $f(x)=1$ and $g:\mathbb{R}\to \mathbb{Z}$ given by $g(x)=0$ are both continuous?