The goal of this question is to introduce basic group theory concepts with GAP: examples about alternating groups, cyclic groups and demonstrate the Lagrange theorem $[G:H]=\frac{\#G}{\# H}$.
Example.
I was surprised to find out that the number of elements in Klein four group, alternating group $A_4$ is 12, not 4,
which is equivalent to
Elements(AlternatingGroup(4))
in GAP.
I would be extremely delighted to find GAP commands such as
command to print cosets (
CosetTable(AlternatingGroup(4))
firing error) andcommand to find subgroups of A4.
which I want to use for more accessible demonstration for the Lagrange theorem in group theory. So
How to demonstrate Lagrange theorem with different introductory groups in GAP?
RightCosets
in the manual.CosetTable
has another purpose, and has 2 arguments as documented. You should be suspecting that calling it with one argument is counterintuitive, becase cosets depend both on the group and on its particular subgroup, not just on the group. – Olexandr Konovalov Feb 22 '16 at 00:52G:=AlternatingGroup(4);D:=DerivedSubgroup(G);
, nowSize(G)/Size(D);
is an integer - this is a demonstration. What else would you like to verify? It could make a good question if you ask to demonstrate with GAP hat the converse is not true: if $n$ divides $|G|$, it is not necessary that $G$ has a subgroup of order $n$. – Olexandr Konovalov Feb 23 '16 at 09:23