From the long exact sequence of homology groups associated to the short exact sequence of chain complexes 0→Ci(X)nCi(X)→Ci(X;Zn)→0 deduce immediately that there are short exact sequences
0→Hi(X)/nHi(X)→Hi(X;Zn)→n-Torsion(Hi−1(X))→0
where n-Torsion(G) is the kernel of the map GnG, g↦ng. Use this to show that Hi(X;Zp)=0 for all i and all primes p iff Hi(X) is a vector space over Q for all i.