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

How can I prove that the Cantor function is surjective and continuous?

The part, I think that the cantor function is monotonic and surjective, if I prove this, it is easy to prove that this implies continuity. The way to prove that is surjective, it's only via an algorithm, I don't know if this can be proved in a different way, more elegant. And the monotonicity I have no idea, I think that it's also via an algorithm.


share|cite|improve this question
See Problems in real and complex analysis By Bernard R. Gelbaum, pages 17 and 155. – Martin Sleziak Oct 19 '11 at 18:20
Comment (I don't have enough points to post a comment, sorry): A delta-epsilon proof is not too hard. – gary Oct 19 '11 at 20:49

Let $f$ be the Cantor function. Let $y\in[0,1]$. Let $0.d_1d_2d_3\ldots$ be the binary expansion of $y$. Let $x$ be the number whose ternary expansion is $0.(2d_1)(2d_2)(2d_3)\ldots\ {}$. Then $f(x)=y$. For numbers with non-unique binary expansions, one gets two ternary expansions that do not represent the same number; call them $x_1 < x_2$. Then for all $x\in [x_1,x_2]$, $f(x)=y$.

As for continuity, if a weakly monotone function has a discontinuity, it is a jump, so then the function cannot be surjective.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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