Is there any continous function $f:R-R$ such that $f(x)\in Q$ for all $x\in R/Q$ and $f(x) \in R/Q$ for all $x \in Q$?
All the functions i considered following given conditions are not continous.How do i know for sure if there are any or not?
Asked
Active
Viewed 42 times
1 Answers
0
Such a function would not be constant.
Pick $a<b$ with $f(a)\ne f(b)$.
Then $f$ takes all values between $f(a)$ and $f(b)$.
There are uncountably many rationals between $f(a)$ and $f(b)$.
There are only countably many rationals...
Angina Seng
- 161,540
-
@kimchilover I did not write R/Q. – Angina Seng Aug 14 '17 at 15:36
-
Sorry: my comment was directed at Nitish – kimchi lover Aug 14 '17 at 15:39