the order of an element g of a group G equal the order of the subgroup <g>.
if g is of infinite order (like 1 is in the additive group of the integers), then <g> is isomorphic to Z. this never happens in finite groups though, in finite groups every element is of finite order.
let's look at what happens when G is finite.
consider the set {g,g^2,g^3,g^4,g^5...}, where g ≠ e.
if G is finite, at some point we have to have some duplication, so g^k = g^m, k ≠ m.
we can choose k to be the bigger of the two (or else just turn the equation around).
applying g^-1 to both sides of the equation m times, we get:
g^(k-m) = e. since k > m, k-m is positive.
choose n = min{r in Z+: g^r = e}
this is a non-empty set of positive integers, so it has a unique smallest element.
so n is the smallest positve integer for which g^n = e.
evidently, |<g>| = |{g,g^2,...,g^(n-1),g^n = e}| = n.
<g> is clearly cyclic, with generator g. by direct count, it has n elements, and g is of order n in G.
it is not true that g can generate multiple cyclic groups, just the one, <g>.
now, every power of g, g^k, generates a subgroup of <g>. if k and n are co-prime, this group will be the same as <g>, but if k and n are NOT co-prime, it will be a smaller subgroup.
let's look at a small cyclic group, to see what i mean. let G be a cyclic group of order 6, with generator x:
G = {e,x,x^2,x^3,x^4,x^5}. <e> = {e}. <x> = G. <x^2> = {e,x^2, x^4}. x^2 is of order 3, (x^2)^3 = x^6 = e, and as expected, <x^2> has 3 elements. 2 and 6 are not co-prime, so as promised, <x^2> is smaller than G.
<x^3> = {e,x^3}. again x^3 has order 2 (it is its own inverse), and the subgroup generated by x^3 has 2 elements. 3 and 6 are not co-prime, and we see that <x^3> is a proper subgroup of G. <x^4> = {x^4, x^2, e} (since (x^4)^2 = x^8 = (x^6)(x^2) = e(x^2) = x^2, and (x^4)^3 = x^12 = (x^6)^2 = e^2 = e).
hence <x^4> = <x^2>, both x^2 and x^4 have order 3 and generate the same 3-element proper subgroup of G.
finally, let's consider x^5. since 5 and 6 are co-prime, we should expect <x^5> = G.
(x^5)^2 = x^10 = (x^6)(x^4) = e(x^4) = x^4
(x^5)^3 = x^15 = (x^12)(x^3) = (x^6)^2(x^3) = e^2(x^3) = x^3
(x^5)^4 = x^20 = (x^18)(x^2) = (x^6)^3(x^2) = e^3(x^2) = x^2
(x^5)^5 = x^25 = (x^24)(x) = (x^6)^4(x) = e^6(x) = x
(x^5)^6 = x^30 = (x^6)^5 = e^5 = e
so x^5 is of order 6, and indeed <x^5> = G.
the key in the definition of |g|, is that the order of g is the smallest positive integer n for which g^n = e.
yes, for every g in G, g^0 = (g^k)(g^(-k)) = e, but 0 is not positive.
yes, there may be two (and thus infinitely many) integers with g^k = g^m = e, but for any such pair, either k = m, or one is smaller. so the smallest such integer is unique.
in fact, if n is the order of g, and for some other positive integer s, g^s = e, we can prove that s is a multiple of n. by the division algorithm for integers, we can write:
s = qn + r, where 0 ≤ r < n. so:
e = g^s = g^(qn+r) = (g^n)^q(g^r) = (e^q)(g^r) = g^r.
since n is the smallest positive integer for which g^n = e, and r < n, r must not be positive. hence r = 0, and s = qn, that is, s is a multiple of n.