Proof

The map f : (Z,+,0) -> G given by f(i) = gi is a morphism of groups.

If there is no positive integer n such that gn = e, then f is a bijection.

Otherwise, if n is the minimal positive integer n with gn = e, then G is isomorphic to (Z/nZ,+,0).