Let $\mathbb{Q}$ be the topological space of rational numbers (with topology induced by inclusion in the real line) and let $\mathbb{Q}^+$ be the set of positive ($x>0$) rationals.
I'm looking for a simple construction of a homeomorphism $\phi: \mathbb{Q} \rightarrow \mathbb{Q}^2$ (not using an abstract result). In an early post, it was suggested to use continued fractions, but this has problems with negative numbers. My idea is we can first make a homeomorphism $f: \mathbb{Q}^+ \rightarrow \mathbb{Q}$ via $f(x) = (x-1)^3/x$ and then we can just worry about $\mathbb{Q}^+$.
Then the homeomorphism $\phi: \mathbb{Q}^+ \rightarrow (\mathbb{Q}^+)^2$ would just go like
$[a_0, a_1, ..., a_n] \rightarrow ([a_0, a_2, ...], [a_1, a_3, ...])$
this seems to be obviously bijective, and I believe it is bicontinous just based on the idea that two continued fractions are close if and only if enough of their initial terms agree (which sounds plausible).
Does this make sense? Or am I missing something? Thanks for your help.