Prove or disprove that there does not exist a monotone function $f:\mathbb{R}\rightarrow\mathbb{Q}$ which is onto.
Clearly $f$ can not be continuous. Suppose $f$ is discontinuous. Then it can have only countably many points of discontinuity. From this how to proceed?
Assume without loss of generality that $f$ is non-decreasing. First of all,
By this claim, $f$ is non-decreasing and discontinuous at at least one point, say $\beta$, then $$\lim_{x\to\beta^-}f(x)<\lim_{x\to\beta^+}f(x)$$ (The limits may not lie in $\mathbb Q$) Now again by the non-decreasing property, $f$ cannot assume any value inside the interval $$(\lim_{x\to\beta^-}f(x),\lim_{x\to\beta^+}f(x))$$ which surely contains a rational number. This contradicts $f$ being onto $\mathbb Q$.