What is $\operatorname{rank}_{\mathbb{Z}} \mathbb{Q}$?
I think it is $\aleph_0$, but cannot figure out how the basis would look like.
Thank you in advance.
(I faced this when proving $(\mathbb{Q},+)$ is not a finitely generated group. If it is finitely generated, then $\mathbb{Q}$ is group-isomorphic to $\mathbb{Z}^r \times G$ where $G$ is some finite group. However, since $\mathbb{Q}$ is torsion-free, it is isomorphic to $\mathbb{Z}^r$. So the rank of $\mathbb{Q}$ over $\mathbb{Z}$ is finite, which I want to make a contradiction.)