In GAP 4.1,
s8 := SymmetricGroup(8);
returns the GAP structure of the symmetric group
on
letters. To find the number of elements of
this group, type
Size( s8 );.
To find if it is an abelian group, type IsAbelian( s8 );.
In GAP, a permutation group
can be entered using the Group command.
For example, s7 := Group( (1,2), (1,2,3,4,5,6,7) );
returns the GAP structure of the group generated by
and
, which happens to be
the symmetric group
on
letters. To find the number of elements of
this group, type
Size( s7 );.
(b) Create the
permutations group
generated by
in the section discussing Plain
Bob Minimus and find out how many elements they have.
In GAP, to find the order of the move
of the Rubik's cube, type
U:=( 1, 3, 8, 6)( 2, 5, 7, 4)( 9,33,25,17)(10,34,26,18)(11,35,27,19); L:= ( 9,11,16,14)(10,13,15,12)( 1,17,41,40)( 4,20,44,37)( 6,22,46,35); F:= (17,19,24,22)(18,21,23,20)( 6,25,43,16)( 7,28,42,13)( 8,30,41,11); R:= (25,27,32,30)(26,29,31,28)( 3,38,43,19)( 5,36,45,21)( 8,33,48,24); B:= (33,35,40,38)(34,37,39,36)( 3, 9,46,32)( 2,12,47,29)( 1,14,48,27); D:= (41,43,48,46)(42,45,47,44)(14,22,30,38)(15,23,31,39)(16,24,32,40); G:=Group(R,L,U,D,F,B); Order(R*F);
The Rotation game.
Recall the
grid,
Question: Can each permutation
of
be expressed in the form
, where
for all
?
In GAP,
G:=Group((1,2,3), (1,2)); c:=RightCoset(G,(2,3,4)); Elements(c);
(b) Same for the Rubik's cube move B.
(b) Multiply R*L*U*DD*F*B.
(b) List all the elements in the group
generated by
and
.
(c) How many positions of the Rubik's cube can be obtained by only using the moves R and F? (Hint: Consider the "two faces subgroup" of the Rubik's cube group generated by F and R.)
Let
be the group geberated by
,
.
(b) Find a complete set of representatives of each conjugacy
class of
.