this was a task from a previous homework that I couldn't do. I am now trying to understand it. We were provided with a solution but I think it could be wrong. This is what it was:
$$f(1) = f\left(\frac bb\right) = f\left(\frac1b + ... + \frac 1b \right) = f\left(\frac 1b\right)^b \quad \Rightarrow \quad \forall b \in \mathbb Z, \ f \left(\frac 1b\right) = f(1)^{\frac1b} \in \mathbb Q$$
this next line is the part I don't understand:
$$f \left(\frac 1b\right) = f(1) = 1$$
$$f(2) = f \left(\frac ab\right) = f \left(\frac 1b\right)^a = 1^a = 1 \quad \forall 2 \in Q , a,b \in \mathbb Z$$
so $f$ is the trivial group morphism.
I don't understand how f(1) = 1. I think maybe the person that provided the solution thought 1 is the neutral element of (Q, +) but that is 0. But I guess it doesn't have to be injective so f(1) could still also be 1. But I don't understand how you would get there from the previous steps.
Sorry for not quite knowing how to write this neatly. Thanks in advance!