Given permutations a and b, the group they generate is the set of all possible compositions of any number of as and any number of bs.
The groupermu command computes the group generated by two permutations.