I have to prove that :
1) For every positive integer $n$, $\mathbb{Z}_{n}$ is not a flat $\mathbb{Z}$-module
2) Every torsion free abelian group is a flat $\mathbb{Z}$-module
What I have done:
1) We can consider the multiplication by $n$ as a map $\phi_{n} : \mathbb{Z} \to \mathbb{Z}$, this is injective, and then tensor by $\mathbb{Z}_{n}$, we obtain $$\phi_{n} \otimes id : \mathbb{Z} \otimes_{\mathbb{Z}} \mathbb{Z}_{n} \to \mathbb{Z} \otimes_{\mathbb{Z}} \mathbb{Z}_{n}$$ but $\mathbb{Z} \otimes_{\mathbb{Z}} \mathbb{Z}_{n} \cong \mathbb{Z}_{n}$ , $\phi_{n} \otimes id$ is the multiplication by $n$ and so is not injective.
2) If the group is finitely generated, then we apply the structure theorem abou finitely generated abelian groups and we recall that tensor product commutes with direct sum.
So the problem is when the group isn't finitely generated. Any hint ?
(1) is good.
A finitely generated torsionfree (abelian) group is free, hence flat. Now, suppose $P$ is a torsionfree module and let $f\colon M\to N$ be an injective morphism. You want to prove that $$ f\otimes P\colon M\otimes P\to N\otimes P $$ is injective. If $t=\sum_{i=1}^n x_i\otimes y_i\in\ker(f\otimes P)$ then you can consider the subgroup $L=\langle x_1,\dots,x_n\rangle\subseteq M$ and the restriction $g\colon L\to N$ of $f$ to $L$. Then you have the commutative diagram $$\require{AMScd}\begin{CD} L\otimes P @>g\otimes P>> N\otimes P \\ @Vj\otimes PVV @VV\mathit{id}V \\ M\otimes P @>f\otimes P>> N\otimes P \end{CD}$$ Since $L$ is finitely generated, $g\otimes P$ is injective. Set $s=\sum_{i=1}^n x_i\otimes y_i$ as an element of $L\otimes P$; then, $j\colon L\to M$ being the inclusion, $$ (g\otimes P)(s)=(f\otimes P)\circ(j\otimes P)(s)=(f\otimes P)(t)=0 $$ so $s=0$ and therefore $t=0$.