Fork me on GitHub
Math for the people, by the people.

User login

bijection between closed and open interval

% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these

% used for TeXing text within eps files
% need this for including graphics (\includegraphics)
% for neatly defining theorems and propositions
% making logically defined graphics

% there are many more packages, add them here as you need them

% define commands here


For mapping the end points of the closed unit interval\, $[0,\,1]$\, and its inner points bijectively onto the corresponding open unit interval\, $(0,\,1)$,\, one has to discern suitable denumerable subsets in both sets:
& [0,\,1]\, \;=\; \{0,\,1,\,1/2,\,1/3,\,1/4,\,\ldots\}\cup S,\\
&(0,\,1) \;=\; \{1/2,\,1/3,\,1/4,\,\ldots\}\cup S,
$$S \;:=\; [0,\,1]\smallsetminus\{0,\,1,\,1/2,\,1/3,\,1/4,\,\ldots\}.$$
Then the mapping $f$ from\, $[0,\,1]$\, to\, $(0,\,1)$\, defined by
$$f(x) \;:=\;
 1/2 \quad \mbox{for}\quad x = 0,\\
 1/(n\!+\!2) \quad \mbox{for} \quad x = 1/n \quad (n = 1,\,2,\,3,\,\ldots),\\
 x \qquad \mbox{for} \quad x \in S
is apparently a bijection.\, This means the equicardinality of both intervals.\\

Note that the bijection is neither monotonic (e.g. $0 \mapsto \frac{1}{2}$,\; $\frac{1}{2}\mapsto \frac{1}{4}$,\; 
$1 \mapsto \frac{1}{3}$) nor continuous.\, Generally, there does not exist any continuous surjective mapping\, 
$[0,\,1] \to (0,\,1)$,\, since by the intermediate value theorem a continuous function maps a closed interval to a closed interval.

\bibitem{L}{\sc S. Lipschutz}: {\em Set theory}.\, Schaum Publishing Co., New York (1964).