The problem is to find every group homomorphism $$\varphi:(\mathbb{Z}\times \mathbb{Z}, +,-,0)\longrightarrow(\mathbb{Q}, +,-,0)$$ and the other way around $$\varrho: (\mathbb{Q}, +,-,0) \longrightarrow(\mathbb{Z}\times \mathbb{Z}, +,-,0) $$
I started with the latter one, but I found only one:
- $\forall x\in\mathbb{Q}: \varrho(x)=(0,0)$
I tried this one: 2. $\varrho(\frac{a}{b})=(a,b), \frac{a}{b}\in\mathbb{Q}$
but it doesn't work, because $$\varrho(\frac{a}{b})+\varrho(\frac{c}{d})=(a+c,b+d)=\varrho(\frac{a+c}{b+d})\not=\varrho(\frac{a}{b}+\frac{c}{d})$$
I couldn't think of any other.
When I tried to find a homomorphism $\varphi$, again, by trying, I came only with the null one:
$$\varphi((a,b))=0$$
How can I find all homomorphisms and be sure that I really found them all?
Any $f: \mathbb{Q} \rightarrow \mathbb{Z}\times\mathbb{Z}$ is trivial since division by arbitrary integers is possible in $\mathbb{Q}$ but not in $\mathbb{Z} \times \mathbb{Z}$.
In details, for a group homomorphism $f: \mathbb{Q} \rightarrow \mathbb{Z}\times\mathbb{Z}$, let $f(1) = (a,b)$, where $a,b \neq 0$. Then, for example, $f\left(\frac{1}{2ab}\right) = (c,d)$ should be such that $2ab \cdot (c,d) = (a,b)$, but this can happen only if $c = \frac{1}{2b}, d = \frac{1}{2a}$, but $c$ and $d$ are integers, a contradiction.
If one of $a, b$ equals zero, a similar argument shows that there is no homomorphism other then the trivial one.
$\mathbb{Z} \times \mathbb{Z}$ is the free abelian group with two generators, which completely describes the homomorphisms from it.
A homomorphism $f: \mathbb{Z}\times\mathbb{Z} \rightarrow \mathbb{Q}$ is fully determined by $f(1,0)$ and $f(0,1)$. Given any rational numbers $r_1, r_2$ you can set $f(1,0) = r_1$, $f(0,1) = r_2$ and extend it by linearity: $f(a,b) = a\cdot r_1 + b \cdot r_2$. So, for any such pair $r_1,r_2$ there is a homomorphism.