I want to prove wich $C = (\{0\} \times [0,1]) \: \cup \: \{ (\frac{1}{n},y), n \in \mathbb{N}, y \in [0,1] \} \:\cup \: ([0,1] \times \{0\})$ is connected.
My attempt:
$C$ is the union of sets. If we show that the sets have non-empty intercept, then $C$ is connected.
Let $A = (\{0\} \times [0,1])$ and $B = \{ (\frac{1}{n},y), n \in \mathbb{N}, y \in [0,1] \} \:\cup \: ([0,1] \times \{0\})$. $A \cap B = \{(0,0)\}$
$A$ is connected? Let $f: [0,1] \rightarrow \mathbb{R}^2$ such that $f(x) = (0,x)$, $f$ f is a continuous function from point $(0,0)$ to point $(0,1)$. Then, it is a path with a starting point and an ending point. Therefore, $A$ connected by paths, this implies $A$ connected.
$B$ is connected? Let $S= \{ (\frac{1}{n},y), n \in \mathbb{N}, y \in [0,1] \}$ and $T = ([0,1] \times \{0\})$. The intercept are points of the type $ (1/y,0), y \in \mathbb{N}$. T is connected, in an analogous way we draw from $A$. For the set $S$, we can create a function for each vertical line with the joining points $(1/y,0)$ and from there conclude that it is path connected. Therefore, $B$ is connected.
This is enough to show that $C$ is connected.
I feel that the justification of $B$ being related is not quite right, but I don't understand why.
I really appreciate any help.
You can use that the union of two connected subsets of nonempty intersection is connected.
So $A\cup T$ is connected.
For $k\in \mathbb{N}^{\ast}$, let $S_k=\{\left(\frac1k, y\right)|y\in[0,1]\}$
We have $C=A\cup T\cup \bigcup_{k=1}^{+\infty} S_k$
By induction, we can prove that forall n, $C_n = A\cup T\cup \bigcup_{k=1}^{n} S_k$ is connected.
Finally, let X and Y two points of C, there exists $N\in\mathbb{N}^{\ast}$ such that X and Y are in $C_N$. However $C_N$ is connected and we can find a path in $C_N$ then in $C$ from X to Y.