A nontrivial subgroup of the Klein 4 group as a Cayley table.
is the subgroup of generated by element , but Cayley table groups always have a set of elements . In particular, the elements of the subgroup have been renumbered. We can obtain the original numbering by applying , defined below:
In order to test whether an element of is a member of , we cannot just test whether occurs in because of this. We can test whether occurs in the set constructed above, or (more efficiently) we can use the SubgroupMembership command.