I would like to know whetherIs there exists somea continuous function $F$ satisfying the following conditions: Let $R$ be all real numbers and $Q$ be all rational numbers. Denote by $F(R)$ and $F(Q)$ the ranges of$F: R\to R$ such that $F$ onis a surjection but not an injection, $R$$F(Q)\subset Q$ and $Q$. Could $F$ satisfy the following conditions:
$F$ is a surjection ($F(R)=R$), but not an injection;
$F(Q)\subset Q$
The restriction $F: Q\to Q$ is an injection, but not a surjection.
If suchrestriction $F$ exists, please give$F: Q\to Q$ is an example. If not existsinjection, could someone givebut not a proof?surjection. Here $Q$ denotes the set of rational numbers. Thx a lotfor the reply!