[Math] Constructing a bijection

real-analysis

I need help with this question.

Construct an explicit bijection from [0,1] to (0,1) over the real numbers.

I have one that works over naturals but however I cannot not figure it out over the reals. Any and all help is appreciated.

Best Answer

Hint. Use Hilbert's Hotel to lodge some numbers in $(0,1)$; then deal with the two newcomers $0$ and $1$.

That is: find a sequence $x_1,x_2,\ldots,x_n,\ldots$ of numbers in $(0,1)$, all distinct. Map $x_1$ to $0$; map $x_2$ to $1$. Map $x_3$ to $x_1$. Map $x_4$ to $x_2$. And so on. As for the rest of the numbers in $(0,1)$, well, they can just stay where they are...

Related Question