How to use GAP to cumpute $S=\{s|s=h^2, h\in H\}$ for every subgroup $H$ of $G$?

46 Views Asked by At

Let $G$ be a finite group, then how to use GAP to cumpute $S=\{s|s=h^2, h\in H\}$ for every subgroup $H$ of $G$?

1

There are 1 best solutions below

3
On BEST ANSWER

Since every element lies in a subgroup, this is just the set $\{h^2| h\in G\}$. So calculate the conjugacy classes, check which classes are squares (the classes of elements of odd order and those of even order into which other classes square) and take the elements of these classes.