[step:Compute $H_*(X_{2g})$ by induction on $g$ via Mayer-Vietoris]We prove by induction on $k \geq 0$ that
\begin{align*}
H_n(X_k) \cong \begin{cases} \mathbb{Z} & n = 0, \\ \mathbb{Z}^k & n = 1, \\ 0 & n > 1. \end{cases}
\end{align*}
**Base case $k = 0$.** The wedge of zero circles is a single point $X_0 = \{v\}$. A one-point space has $H_0 = \mathbb{Z}$ and $H_n = 0$ for $n \geq 1$, matching the claim with $k = 0$.
**Base case $k = 1$.** $X_1 = S^1$. By [Homology of Spheres](/theorems/1945) applied with sphere dimension $1$, $H_0(S^1) = \mathbb{Z}$, $H_1(S^1) = \mathbb{Z}$, and $H_n(S^1) = 0$ for $n \geq 2$. This matches the claim with $k = 1$.
**Inductive step.** Assume the claim holds for $X_{k-1}$ with $k \geq 2$. We apply the [Mayer-Vietoris Theorem](/theorems/1931) to a decomposition $X_k = A \cup B$ where $A \supset X_{k-1}$ is an open thickening of $X_{k-1}$ inside $X_k$ and $B$ is an open thickening of the extra $k$-th loop $S^1_k$. Specifically, choose a small open arc $U_k \subset S^1_k$ around the basepoint $v$ that is disjoint from the other loops, and set
\begin{align*}
A = X_k \setminus \{p_k\}, \qquad B = U_k,
\end{align*}
where $p_k \in S^1_k$ is an interior point antipodal to $v$. Then $A$ is open (complement of a point in a Hausdorff space is open on a CW complex) and deformation retracts onto $X_{k-1}$ (squeeze the $k$-th loop, which has been cut, back to the basepoint $v$). The set $B = U_k$ is open and contractible (an arc). The intersection $A \cap B = U_k \setminus \{p_k\} = U_k$ (since $p_k \notin U_k$), which is the same open arc and is contractible.
The Mayer-Vietoris sequence reads
\begin{align*}
\cdots \to H_n(A \cap B) \to H_n(A) \oplus H_n(B) \to H_n(X_k) \to H_{n-1}(A \cap B) \to \cdots
\end{align*}
*For $n \geq 2$.* $H_n(A \cap B) = 0$ (contractible), $H_n(A) = H_n(X_{k-1}) = 0$ (inductive hypothesis, $n \geq 2$), $H_n(B) = 0$ (contractible), so by exactness $H_n(X_k)$ sits between two zeros, giving $H_n(X_k) = 0$.
*For $n = 1$.* The relevant segment of the sequence is
\begin{align*}
H_1(A \cap B) \to H_1(A) \oplus H_1(B) \to H_1(X_k) \xrightarrow{\partial} H_0(A \cap B) \xrightarrow{\iota_*} H_0(A) \oplus H_0(B).
\end{align*}
We compute each term: $H_1(A \cap B) = 0$ (contractible), $H_1(A) = H_1(X_{k-1}) = \mathbb{Z}^{k-1}$ (inductive hypothesis), $H_1(B) = 0$ (contractible). The map $\iota_*: H_0(A \cap B) \to H_0(A) \oplus H_0(B)$ sends the generator $[v]$ of $H_0(A \cap B) = \mathbb{Z}$ (a single path component) to $([v]_A, [v]_B) \in \mathbb{Z} \oplus \mathbb{Z}$. Both $A$ and $B$ are path-connected (they are connected open sets in $X_k$; $A$ deformation retracts onto $X_{k-1}$, which is path-connected, and $B$ is an arc), so $H_0(A) = H_0(B) = \mathbb{Z}$ with canonical generators given by any point. The map $\iota_*$ sends $1 \mapsto (1, 1)$, which is injective. Hence $\operatorname{ker}(\iota_*) = 0$, so $\partial: H_1(X_k) \to H_0(A \cap B)$ has image zero, i.e.\ $\partial = 0$. The sequence becomes
\begin{align*}
0 \to \mathbb{Z}^{k-1} \oplus 0 \to H_1(X_k) \to 0,
\end{align*}
giving $H_1(X_k) \cong \mathbb{Z}^{k-1} \oplus 0 \cong \mathbb{Z}^{k-1}$ — but this would conflict with the claim $H_1(X_k) \cong \mathbb{Z}^k$. The discrepancy shows our decomposition $X_k = A \cup B$ was chosen too narrowly: $A$ deformation retracts to $X_{k-1}$ only after we forget the now-severed $k$-th loop, but severing was achieved by removing *one* point $p_k$, so $A$ deformation retracts onto $X_{k-1}$ *wedge an arc*, which is homotopy equivalent to $X_{k-1}$ alone. In fact this is correct — the issue is rather with our description of $X_k$ via this cover.
Let us redo the cover. Take
\begin{align*}
A = X_k \setminus \{q\}, \qquad B = X_k \setminus \{v\},
\end{align*}
where $q \in S^1_k$ is the antipodal point to $v$ on the $k$-th loop. Both $A$ and $B$ are open (complement of a point in a CW complex).
- $A$ deformation retracts onto $X_{k-1}$: collapse the arc $S^1_k \setminus \{q\}$ to the basepoint $v$.
- $B = X_k \setminus \{v\}$ is the disjoint union of the $k$ loops with their basepoint removed, i.e.\ $k$ disjoint open arcs. Each arc is contractible; since the arcs are disjoint, $B$ is a disjoint union of $k$ contractible pieces, so $H_0(B) = \mathbb{Z}^k$ and $H_n(B) = 0$ for $n \geq 1$.
- $A \cap B = X_k \setminus \{v, q\} = $ ($k-1$ loops with basepoint removed) $\cup$ ($k$-th loop with both $v$ and $q$ removed). The first piece contributes $k - 1$ contractible arcs; the second contributes $2$ contractible arcs. So $A \cap B$ is a disjoint union of $(k-1) + 2 = k+1$ arcs, giving $H_0(A \cap B) = \mathbb{Z}^{k+1}$ and $H_n(A \cap B) = 0$ for $n \geq 1$.
The Mayer-Vietoris sequence in low degree:
\begin{align*}
0 \to H_1(A \cap B) \to H_1(A) \oplus H_1(B) \to H_1(X_k) \xrightarrow{\partial} H_0(A \cap B) \xrightarrow{\iota_*} H_0(A) \oplus H_0(B) \to H_0(X_k) \to 0.
\end{align*}
Substituting known terms:
\begin{align*}
0 \to 0 \to \mathbb{Z}^{k-1} \oplus 0 \to H_1(X_k) \xrightarrow{\partial} \mathbb{Z}^{k+1} \xrightarrow{\iota_*} \mathbb{Z} \oplus \mathbb{Z}^k \to \mathbb{Z} \to 0.
\end{align*}
We compute $\iota_*$. The $k+1$ path components of $A \cap B$ are: $k - 1$ loops (from $X_{k-1} \setminus \{v\}$, each a single open arc) and $2$ arcs from $S^1_k \setminus \{v, q\}$. Each component of $A \cap B$ includes into one component of $A$ and one component of $B$. Since $A$ is connected, $H_0(A) = \mathbb{Z}$ and every component of $A \cap B$ maps to the single generator of $H_0(A)$. On the $B$-side, the $k-1$ loops from $X_{k-1} \setminus \{v\}$ are the $k-1$ arcs of $B$ that come from those loops; the $2$ arcs from $S^1_k \setminus \{v, q\}$ both lie in the single $k$-th arc of $B$, so they map to the same generator of $H_0(B) = \mathbb{Z}^k$.
So $\iota_*: \mathbb{Z}^{k+1} \to \mathbb{Z} \oplus \mathbb{Z}^k = \mathbb{Z}^{k+1}$ is given in coordinates by
\begin{align*}
(c_1, \ldots, c_{k-1}, d_1, d_2) \mapsto \left( c_1 + \cdots + c_{k-1} + d_1 + d_2,\; c_1,\, \ldots,\, c_{k-1},\, d_1 + d_2 \right).
\end{align*}
The kernel of $\iota_*$: the last $k-1$ coordinates of the output force $c_1 = \cdots = c_{k-1} = 0$; the last coordinate of the output ($d_1 + d_2$) forces $d_2 = -d_1$; the first coordinate is then $0 + 0 + d_1 + d_2 = 0$, which is automatic. So $\ker(\iota_*) \cong \mathbb{Z}$, generated by $(0, \ldots, 0, 1, -1)$.
Exactness at $H_0(A \cap B)$ gives $\operatorname{Range}(\partial) = \ker(\iota_*) \cong \mathbb{Z}$. Exactness at $H_1(X_k)$ gives a short exact sequence
\begin{align*}
0 \to \mathbb{Z}^{k-1} \to H_1(X_k) \to \mathbb{Z} \to 0.
\end{align*}
This is a short exact sequence of free abelian groups, so it splits: $H_1(X_k) \cong \mathbb{Z}^{k-1} \oplus \mathbb{Z} = \mathbb{Z}^k$, as claimed.
The $H_0$ calculation: path-connectivity of $X_k$ gives $H_0(X_k) = \mathbb{Z}$, matching the claim.
This completes the inductive step, so $H_n(X_k)$ matches the claimed values for all $k \geq 0$.[/step]