How to prove that the set $A = \{\ q \in \mathbb{Q}\ |\ q = n + \frac{1}{2n} \mathrm{\ for\ }n\in\mathbb{N}\ \}$ is closed in $\mathbb{R}$? I am working in the metric space $\mathbb{R}$ equipped with the distance function $d(x,y)=|x-y|$.
Let $A = \{\ q \in \mathbb{Q}\ |\ q = n + \frac{1}{2n} \ \}$. How do I formally prove that $A$ is closed? In order to prove that $A$ is closed in $\mathbb{R}$ I need to show that $A=\mathrm{cl}(A)$. It is elementary that $A\subseteq\mathrm{cl}(A)$. So I just need to prove that $A\supseteq\mathrm{cl}(A)$
I have two definitions of $\mathrm{cl}(A)$:
DEFINITION 1:$\ $ $\mathrm{cl}(A)$ = { $b \in X$ | there exists a sequence $\{a_{n}\}_{n=1}^{\infty}\subset A$ such that $\lim\limits_{n \to \infty}=b$ }
DEFINITION 2:$\ $ $\mathrm{cl}(A)$ = { $b \in X$ | $B(b;r)\cap A \neq \emptyset$ for all $r>0$ }
I am confused as to how to prove $\mathrm{cl}(A) \subseteq A$ formally.
My ATTEMPT:
I think the second definition will be easier to use.
Let $b \in \mathrm{cl}(A)$. Then for any $r>0$ we have $B(b;r)\cap A \neq \emptyset$. Fix any $r>0$.
Since $B(b;r)\cap A$ is non-empty, take an element $p \in B(b;r)\cap A$. 
Since $p  \in A$, there exists an $n\in\mathbb{N}$ such that $p = n + \frac{1}{2n}$.
Since $p \in B(b;r)$, we have $|p-b|<r$, or equivalently, $|n+\frac{1}{2n}-b|<r$.
How do I show that this implies $b=m+\frac{1}{2m}$ for some $m\in \mathbb{N}$? This would show that $b\in A$, and hence $\mathrm{cl}(A) \subseteq A$.
Can someone help me out?

$A$ is set of the solutions of the equation $$\sin\big(\pi \dfrac{x\pm\sqrt{x^2-2}}{2}\big)=0$$and so is the union of the zero sets of two continuous functions, hence closed.
