We have $$f(x)=\left\{\begin{matrix} 1 & \exists n\in\mathbb N,\ x=\frac{1}{n}\\ 0 & \text{otherwise} \end{matrix}\right.$$ on the interval $(-1,1)$. I am asked to find the points of continuity and discontinuity.
My Attempt: First of all, on $(-1,0)$ we have $f(x)=0$ and so from the locality of the limit we can say the limit at any point there is $0$ - $f$ is continuous.
If $x_0=0$ we can look at the sequences $\frac{1}{n},\ \frac{\sqrt2}{n}$ and show easily there's no limit at $0$ by Heine- discontinuity of 2nd kind.
If $x_0=\frac{1}{n}$ we can take the neighborhood with $\delta=\min\left \{ x_0-\frac{1}{n+1},\frac{1}{n}-x_0 \right \}$ (wihout $x_0$) and show the limit is $0$ because at any point in the neighborhood, $f(x)=0$, thus there's a discontinuity of 1st kind.
Any comments on what I did so far are welcome.
My Problem: Showing $f$ is continious at any other point, $x_0\in (0,1)-\left \{\frac{1}{n}|n\in\mathbb N \right \}$. My best attempt is the idea to show that for any sequence $x_0\neq x_k\rightarrow x_0$ starting from some spot, $x_k$ cant be of the form $\frac{1}{n}$ (cough, might be revolved around partial limits). However, I can't figure out how to prove that AND I don't think I want to. there must be a better way.
To summarize- I'd like to see if my solution so far can be improved/rewritten in a completly different way, and solve what's left to prove. Thanks in advance for anyone who helps!