Let $\mathbb{Z}^+$ be the set of positive integers and let $d$ be the metric on $\mathbb{Z}^{+}$ defined by
$$ d(n,m) = \begin{cases} 0 &,\text{ if }\; m=n \\ 1 &, \text{ if }\; m \ne n \end{cases} $$
for all $m, n \in \mathbb{Z}^+$ which of the following are true about the metric space $(\mathbb{Z}^+, d)$?
If $n \in \mathbb{Z}^+$ then $\{ n \}$ is open.
Every subset of $\mathbb{Z}^+$ is closed.
Every real valued function defined on $\mathbb{Z}^+$ is continuous.
My thoughts. $\{n\}$ is open since it is the ball $B(n,1)=\{m\in \mathbb{Z}^+ : d(n,m)<1\}=\{n\}$ so it is the discrete topology on $\mathbb{Z}^+$. Hence the first and the second and the third are correct?