Consider the sequence $(a_n)_n$ that is defined by $a_n:=1/n$ and the set $A:=\{a_n \ | \ n \in \mathbb{N}\} \cup \{0\}$. I want to show that $\mathbb{R} \setminus A$ is open in $\mathbb{R}$. I had two ideas to show this.
$(1)$ It should be the case that $\mathbb{R} \setminus A = (-\infty,0) \cup (1, \infty) \cup \bigcup_{n \geq 2} \left(\frac{1}{n+1}, \frac{1}{n}\right)$, so it is in particular a union of open sets and thus open.
$(2)$ Let $x \in \mathbb{R} \setminus A$. Then define $\delta:= \min\{|x-a| \ : \ a \in A\}$ and $B:=\left(x-\frac{\delta}{2},x+\frac{\delta}{2}\right)$. Then $B$ is open with $x \in B$ and $B \subseteq \mathbb{R} \setminus A$. Im not quite sure if the minimum exists here, which is why I am not sure if this would work. If one would not have $0$ in A for example and choose $x=0$, then one would have $\delta=0$ which would also be a problem.
Are these attempts correct?