Group generated by two permutations

### 11.2.14 Group generated by two permutations

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.

- groupermu takes two arguments: a and b, permutations.
- groupermu(a,b) returns the group of the permutations generated by a and b.

#### Example

groupermu([0,2,1,3],[3,1,2,0])

⎡ ⎢ ⎢ ⎢ ⎣ |
0 | 2 | 1 | 3
3 | 1 | 2 | 0
0 | 1 | 2 | 3
3 | 2 | 1 | 0
| ⎤ ⎥ ⎥ ⎥ ⎦