Cycle diagram of Q8. Each color specifies a series of powers of any element connected to the identity element e = 1. For example, the cycle in red reflects the fact that i2 = e, i3 = i and i4 = e. The red cycle also reflects that i2 = e, i3 = i and i4 = e.
where e is the identity element and ecommutes with the other elements of the group. These relations, discovered by W. R. Hamilton, also generate the quaternions as an algebra over the real numbers.