[GAP Forum] Permutation Notation

Bill Allombert Bill.Allombert at math.u-bordeaux1.fr
Mon Jan 26 12:20:17 GMT 2009


On Mon, Jan 26, 2009 at 01:31:02AM -0800, Don King wrote:
> Hello,
> I am wondering if I can convert a cycle into a different notation.
> gap>  ConjugacyClasses(s10);
> .....
> (1,2,5,10)
> ......
> 
> For instance, above one represents a mapping 1->2, 2->5, 5->10, 10->1.
> If I use a permutation notation for above one,
> 
>   1 2 3 4 5   6 7 8 9 10
>   2 5 3 4 10 6 7 8 9  1
> 
> is it possible to print a permutation notation (or other similar notation) rather than a cycle notation ?

You can use
Permuted([1..10],(1,2,5,10)^-1);

Cheers,
Bill.



More information about the Forum mailing list