[GAP Forum] Array of ListPerm

Don King symmetryholic at yahoo.ca
Thu Jan 29 09:10:43 GMT 2009


Hello, 

I am having difficulty in converting cycles to the list of permutations.

gap> s := SymmetricGroup(6);
Sym( [ 1 .. 6 ] )
gap> ConjugacyClasses(s);
[ ()^G, (1,2)^G, (1,2)(3,4)^G, (1,2)(3,4)(5,6)^G, (1,2,3)^G, (1,2,3)(4,5)^G, 
  (1,2,3)(4,5,6)^G, (1,2,3,4)^G, (1,2,3,4)(5,6)^G, (1,2,3,4,5)^G, 
  (1,2,3,4,5,6)^G ]
gap> c := ConjugacyClass(s,(1,2,3)(4,5));
(1,2,3)(4,5)^G
gap> Size(c);
120
gap> for i in [1.. 120] do ListPerm(c);
>  (Syntax Error !)

What I'd like to do is to get 120 list of permutations for above formatted like [1, 3, 4, 5, 2, 6], [ 2,3, 4, 5, 6, 1],etc.

Any help will be highly appreciated.
Don


      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/


More information about the Forum mailing list