Suppose that $f : \mathbb{R}\rightarrow \mathbb{R}$ is continuous and that $f(x)\in \mathbb{Q}$ for all $x \in \mathbb{R}$. Prove $f$ is constant.
Continuous Functions from $\mathbb{R}$ to $\mathbb{Q}$