Better way to define this bijection [0,1) to (0,1)

365 Views Asked by At

I have been trying to construct a bijection from $[0,1)$ to $(0,1)$ that my professor was showing me in class. I think that the function works in terms of being one-to-one and onto. Here's the function
$$f(x)=\Bigl(\dfrac{2^{n+1}-3}{2^n}\Bigr)-x$$ but in order for this function to work (i.e. be 1-1 and onto), we have to have $$x<\dfrac{2^{n}-1}{2^{n}}$$ This is what the graph looks like.Rough sketch

My question is whether or not there a better way to construct $f$ so that $x$ doesn't depend on values of $n$.

1

There are 1 best solutions below

0
On

Let $$ 0 \to 0.1 \to 0.01 \to \ldots \to 10^{-n} \to 10^{-n-1} \to \ldots. $$ So we "hide" $0$ in the infinite sequense within $(0,1)$. Then for each point $$ x \in (0,1) \setminus \{10^{-n}:n=0,1,2,\ldots\} $$ we put $x \to x$.