I’d far rather be happy than right any day, Douglas Adams, The Hitchhiker’s Guide to the Galaxy

Definition. Let D ⊆ ℂ be a set of complex numbers. A complex-valued function f of a complex variable defined on D is a rule that assigns to each complex number z belonging to the set D a unique complex number w, $f: D \to \mathbb{C}$.

Recall: The closure is defined as $\bar{S} = S \cup \partial S$, where $\partial S$ is the boundary of $S$. Equivalently, $\bar{S}$ is $S$ together with all its limit points. A set S is closed iff its complement $\Complex - \bar{S}$ is open.
Idea (strategy): Show that $\mathbb{C} \setminus \bar{S}$ is open.
A point $z_0$ is a limit point of S if every neighborhood of $z_0$ intersects S in at least one point other than $z_0$. A point $w \in \partial S$ if every neighborhood of w intersects both S and $ \mathbb{C} \setminus \bar{S}$.
Characterizations of Closed Sets. Let $S \subseteq \mathbb{C}$. The following are equivalent:
(1) $\Rightarrow$ (2): Closed implies contains limit points.
Suppose $S$ is closed. Then, $\mathbb{C} \setminus S$ is open.
Claim: Every limit point of $S$ is in $S$.
Suppose for contradiction that $z$ is a limit point of $S$ but $z \notin S$. Then, $z \in \mathbb{C} \setminus S$.
Since $\mathbb{C} \setminus S$ is open: $\exists \varepsilon > 0 : B(z; \varepsilon) \subseteq \mathbb{C} \setminus S \implies B(z; \varepsilon) \cap S = \emptyset$. However, $z$ being a limit point requires every neighborhood to meet $S$. Contradiction! $\blacksquare$
(2) $\Rightarrow$ (3): Contains limit points implies set equals closure
By definition: $\bar{S} = S \cup \partial S = S \cup \{\text{limit points of } S\}$ (boundary points are either isolated (if in S) or limit points).
The closure of S is the union of S and its boundary points $\bar{S} = S \cup \partial S$. Alternatively, it can be defined as the union of S and its limit points: $\bar{S} = S \cup \{\text{limit points of } S\}$
If $S$ contains all its limit points, then: $\{\text{limit points of } S\} \subseteq S$. Therefore, $\bar{S} = S \cup \{\text{limit points of } S\} = S$ $\blacksquare$
(3) $\Rightarrow$ (1): Set equals closure implies closed
If $\bar{S} = S$, and we proved that $\bar{S}$ is always closed (Previous proposition, for any $S \subseteq \mathbb{C}$, its closure $\bar{S}$ is a closed set), then the set itself $S$ is closed. $\blacksquare$
Let $z_0$ with $|z_0| = 1$. For any $\varepsilon > 0$, consider the point $w = \left(1 - \frac{\varepsilon}{2}\right)z_0$.
Then, $|w| = |1 - \frac{\varepsilon}{2}|\cdot |z_0| = 1 - \frac{\varepsilon}{2} < 1$, so $w \in S$ and $|w - z_0| = \left|\left(1 - \frac{\varepsilon}{2}\right)z_0 - z_0\right| = \frac{\varepsilon}{2}|z_0| = \frac{\varepsilon}{2} < \varepsilon$
So $w \in B(z_0; \varepsilon) \cap S$ and $w \neq z_0$. Every neighborhood of $z_0$ contains points of $S$ w ($w \ne z_0$), so $z_0$ is a limit point. $\blacksquare$
Proof:
The distance from $2 + 7i$ to the unit disk is: $|2 + 7i| - 1 = \sqrt{4 + 49} - 1 = \sqrt{53} - 1 \approx 6.28$
Choose $\varepsilon = \sqrt{53} - 1 > 0$. Then, $B(2 + 7i; \varepsilon) \cap S = \{2 + 7i\}$.
The only point of S in this neighborhood is $2 + 7i$ itself, making it isolated. $\blacksquare$
Proof:
Let $z = x + iy \in \mathbb{C}$ and let $\varepsilon > 0$.
Goal: Find $w \in S$ with $|w - z| < \varepsilon$ and $w \neq z$.
Since $\mathbb{Q}$ is dense in $\mathbb{R}$, there exist rationals: $x_0 \in \mathbb{Q} : x < x_0 < x + \frac{\varepsilon}{\sqrt{2}}, y_0 \in \mathbb{Q} : y < y_0 < y + \frac{\varepsilon}{\sqrt{2}}$ (Figure B)
Define $w = x_0 + iy_0, w \in S$.
Then, $|z - w| = \sqrt{(x - x_0)^2 + (y - y_0)^2} < \sqrt{\left(\frac{\varepsilon}{\sqrt{2}}\right)^2 + \left(\frac{\varepsilon}{\sqrt{2}}\right)^2} = \sqrt{\frac{\varepsilon^2}{2} + \frac{\varepsilon^2}{2}} = \varepsilon$. Hence, $w \in B(z; \varepsilon) \cap S$.
Since this works for arbitrary $z$ and $\varepsilon$, every complex number is a limit point of $S$, $\bar{S} = \mathbb{C}$ $\blacksquare$

Part 1. $0$ is a limit point of $S$
Proof:
For any $\varepsilon > 0$: $\left|\frac{1}{k} + i\frac{2}{k}\right| = \sqrt{\frac{1}{k^2} + \frac{4}{k^2}} = \frac{\sqrt{5}}{|k|}$. As $|k| \to \infty$, this approaches $0$.
Choose $N > \frac{\sqrt{5}}{\varepsilon}$. Then. $\forall |k| > N$: $\left|\frac{1}{k} + i\frac{2}{k}\right| = \frac{\sqrt{5}}{|k|} \lt \frac{\sqrt{5}}{N} \lt \sqrt{5}\frac{\varepsilon}{\sqrt{5}} = \varepsilon$
By the Archimedean property, there always exists an integer $N$ such that $N > \frac{\sqrt{5}}{\varepsilon}$.
So for any $\varepsilon > 0$, infinitely many points of $S$ lie in $B(0; \varepsilon)$. Therefore, $0$ is a limit point $\blacksquare$.
Part 2: No other point is a limit point
We must show that for any $z \in \mathbb{C}$ where $z \neq 0$, there exists a neighborhood around $z$ that contains no points of $S$ (or no other points, if $z \in S$ itself).
Observe that all points in $S$ lie on the line $L$ passing through the origin with slope $2$ (i.e., $y = 2x$, since $\frac{2/k}{1/k} = 2$).
Case 1: z is not on the line $L = \{w : \text{Im}(w) = 2\text{Re}(w)\}$, $z = x + iy$
If $z$ is not on the line $y = 2x$, there is a positive distance between $z$ and the line $L$. Let this perpendicular distance be $d = \text{dist}(z, L) > 0$ (Figure C).
Choose $\varepsilon_z = d/2$. Then, $B(z; \varepsilon_z) \cap S = \emptyset$ (the disk $B(z; \varepsilon)$ does not touch the line L. Since all points of $S$ live on $L$, this disk contains no points of S). Hence, $z$ is not a limit point.
Case 2: $z$ is on the line $L$, but outside the range of S. The real parts of points in S are contained in the interval $[-1, 1]$. Suppose $z = x + 2ix$ with $|x| > 1$.
The closest points of $S$ on $L$ are at $x = \pm 1$, i.e., k = 1 (1 + 2i) and k = -1 (-1 - 2i).
Choose radius $\varepsilon_z = |x| - 1 > 0$. Then, $B(z; \varepsilon_z) \cap S = \emptyset$.
Case 3: Suppose $z$ lies on the line segment between two consecutive points of $S$. $z = x + 2ix$ on line $L$, with $|x| \leq 1$, and $z \notin S$
There exists $k \in \mathbb{Z}$ such that $\frac{1}{k+1} < x < \frac{1}{k}$ (or similar for negative $x$).
Choose radius. Let $\varepsilon$ be the distance to the nearest neighbor: $\varepsilon = \min \left( \left|x - \frac{1}{k}\right|, \left|x - \frac{1}{k+1}\right| \right) \cdot \sqrt{5}$ (Note: The $\sqrt{5}$ factor accounts for the distance along the slanted line $L$ vs just the x-axis ($\star$). If we choose $\varepsilon = d$, the neighborhood is the open ball $B(z; d) = \{w : |w - z| < d\}$, the nearest neighbor is at distance equal to $d$. Since $d$ is not strictly less than $d$, the neighbor falls on the boundary of the ball, not inside it). We can still leave a “buffer zone”, $\varepsilon = \min \left( \left|x - \frac{1}{k}\right|, \left|x - \frac{1}{k+1}\right| \right) \cdot \frac{sqrt{5}}{2}$.
Then, this radius fits exactly in the gap and $B(z; \varepsilon_z) \cap S = \emptyset$ (the disk $B(z; \varepsilon)$ contains no points of $S$).
Case 4: $z \in S, z = z_k$ (isolated points), say $z = \frac{1}{k} + i\frac{2}{k}$
The neighbors of $z_k$ are $z_{k+1}$ and $z_{k-1}, \frac{1}{k\pm 1}$.
The distance between consecutive points on $L$ is: $|z_k - z_{k+1}| = \left| \left(\frac{1}{k} - \frac{1}{k+1}\right) + 2i\left(\frac{1}{k} - \frac{1}{k+1}\right) \right| = \frac{\sqrt{5}}{k(k+1)} (\star)$
Choose radius, let $\varepsilon_z = \frac{\sqrt{5}}{2k(k+1)}$.
Then, the punctured neighborhood $B'(z_k; \varepsilon)$ contains no points of S, $B'(z; \varepsilon_z) \cap S = \emptyset$. So $z$ is isolated, not a limit point (of $S \setminus \{z\}$).
Conclusion: $0$ is the only limit point, and the closure of S is: $\bar{S} = S \cup \{0\}$ $\blacksquare$
