Exercise:Is the set $(T = \{1,\frac12,\frac13,\ldots,\frac1n,\ldots\})$ closed in $\mathbb{R}$?
I tried to answer this question by computing $\mathbb{R}\setminus T=\bigcup_\limits{2}^{\infty}(\frac{1}{n-1},\frac{1}{n})\cup(1,\infty)\cup(-\infty,1)$
So $\mathbb{R}\setminus T$ is the union of open sets hence open which implies $T$ is closed.
The problem arose when I was told that $T$ is not closed.
Question:
What am I doing wrong? How should I solve the question?
Thanks in advance!
It turns out that$$\mathbb{R}\setminus T=\left(\bigcup_{n=2}^\infty\left(\frac1{n-1},\frac1n\right)\right)\cup(-\infty,0]\cup(1,+\infty),$$which is not an open set.