I was confused: today some undergraduate asked me the following exercise
let $m,n\in \mathbb{Z}_{\geq 1}$ and $$G:=\{(a,b)\in \mathbb{C}^\times \times\mathbb{C}^\times: a^m b^n=1\}$$ as a topological group, with the "usual" topology (as a subgroup of $\mathbb{C}^\times \times\mathbb{C}^\times$). Question: what's the number of the connected components of $G$?
If $m=1$, then the answer is $1$: $G\rightarrow \mathbb{C}^\times, (a,b)\mapsto b$ is a homeomorphism.
If $m=n=2$, then $G=\{(a,a^{-1})\in \mathbb{C}^\times \times\mathbb{C}^\times\}\cup \{(a,-a^{-1})\in \mathbb{C}^\times \times\mathbb{C}^\times\}$, and the answer is $2$.
Is the answer for the general case $\min\{m,n\}$? Thanks a lot in advance!
We will show that $\rho:\mathbb C^\times\times\mathbb C^\times\rightarrow \mathbb C^\times$ where $\rho(a,b)=a^mb^n, \gcd(m,n)=1$ has connected fibres, i.e. for any $z\in\mathbb C$, $\rho^{-1}(z)$ is connected.
If this is true, then for general $m,n$ with $d=\gcd(m,n)$, we have $\rho(a,b)=(a^{m/d}b^{n/d})^d=1$ indicates $\zeta_d=a^{m/d}b^{n/d}$ is a $d$-th root of unity, and for fixed $\zeta_d$, we have $\{(a,b) | a^{m/d}b^{n/d}=\zeta_d\}$ is connected (and non-empty). So there are exactly $d$ connected components.
Now we prove the claim, which is purely topological. Assume $z=\rho(z_1,z_2)=\rho(z_3, z_4)$, we shall find a path to connect $(z_1, z_2)$ and $(z_3, z_4)$ within $\rho^{-1}(z)$. We may assume $z_1=e^{a}, z_2=e^b, z_3=e^c, z_4=e^d$, then $\rho(z_1, z_2)=\rho(z_3, z_4)$ implies $$am+bn\equiv cm + dn \mod 2\pi i$$
or equivalently there is an integer $l\in\mathbb Z$ such that $$(a-c)m+(b-d)d=2\pi l i $$
As $\gcd(m,n)=1$, we have $mx+ny=l$ for some $x,y\in\mathbb Z$. So we get $$(a-c)m+(b-d)n=2\pi i (mx+ny)$$
$$am + bn = (c+2\pi i x)m + (d+2\pi i y)n$$
If $c$ is replaced by $c+2\pi i x$ and $d$ by $d+2\pi i y$, obviously $e^c, e^d$ won't be changed. Hence WLOG, we may asume $am+bn=cm+dn$. Now it's pretty easy to construct the path from $(e^a, e^b)$ to $(e^c, e^d)$: $$p(t)=(e^{(1-t)a+tc}, e^{(1-t)b+td})$$ It's easy to check that $\rho(p(t))$ is a constant.