Isomorphic nth powers not implies isomorphic

From Groupprops

Definition

Suppose n>1. Then, we can find groups G,H such that GnHn (i..e, the nth direct powers are isomorphic groups) but G≇H. In fact, we can choose both G and H to be countable torsion-free (i.e., aperiodic) abelian groups.

Facts used

  1. There exist abelian groups whose isomorphism classes of direct powers have any given period: This states that for any r, we can find a (countable torsion-free) abelian group G such that GaGbab(modr).

Proof

Pick r=n from fact (1), let G be the group G as arising from fact (1), and let H=Gr. Then, Hr=(Gr)r=Gr2 Since r2r(modr), we obtain that HrGr. However, since r≢1(modr), H≇G. This gives the required example.