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

Define $$A=\left\{\frac1{n+1}: n\in\mathbb N\right\}\subset\mathbb R\\ B=A\cup\{0\}\subset\mathbb R$$ Is any function $f: A\to \mathbb R$ continuous? And is any function $g:B\to\mathbb R$ continuous?

share|cite|improve this question
Since $A$ has discrete topology, any function $f$ is continuous. For $g$ to be continuous, one only checks the continuity of $g$ at point 0. – Xiaochuan May 22 '12 at 14:14

Since $A$ is discrete, every subset of $A$ is open so any function $f:A\to\mathbb R$ is continuous (the preimage of any open subset of $\mathbb R$ must be open). However, $B$ is not discrete, so there is some function $f:B\to \mathbb R$ which is not continuous. Can you show that the function $f$ defined by $f(x)=1/x$ for $x\in A$ and $f(0)=0$ is not continuous at $0$?

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.