For an abelian group A let p:A→A be multiplication by p, and let pA=kerp, pA=Imp, and Ap=Cokerp as in the proof of Proposition 3F.12. Show that the six-term exact sequences involving Hom(−,Z) and Ext(−,Z) associated to the short exact sequences 0→pA→A→pA→0 and 0→pA→A→Ap→0 can be spliced together to yield the exact sequence across the top of the following diagram
Hom(pA,Z)→Ext(Ap,Z)→Ext(A,Z)pExt(A,Z)→Ext(pA,Z)→0
where the map labeled 'p' is multiplication by p. Use this to show:
(a) Ext(A,Z) is divisible iff A is torsionfree.
(b) Ext(A,Z) is torsionfree if A is divisible, and the converse holds if Hom(A,Z)=0.