Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Assuming I need to find an onto and 1-to-1 function from $(a,b)$ to $(0,1)$, well that's not a hard job. But things are getting bit more complicated when I'm asked to do the exact same but from $[a,b)$ to $(0,1)$ or from $(a,b)$ to $(0,1]$ and so on.

What is the most effective way to find those required functions? because I have the feeling that there is a scheme that I can work by to handle those kind of problems handling with the cardinality of the continuum, $\aleph$.

share|cite|improve this question

marked as duplicate by Brian M. Scott, Marc van Leeuwen, Brandon Carter, Ross Millikan, Asaf Karagila Feb 9 '13 at 23:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted

You can define easily a bijection $[a,b)\leftrightarrow [0,1)$.

Now you define $0\mapsto 1/2$ and $1/n\mapsto 1/(n+1)$, for $n\geq 2$. All the other $x$ is mapped on itself.

share|cite|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.