# S3's elements

Here's elements of Symmetric group of 6th order: S3:

I want to get the same in Sage. So I do:

sage: G = SymmetricGroup(3)
sage: G.list()
[(), (2,3), (1,2), (1,2,3), (1,3,2), (1,3)]


Now I can't find (1,3,2) element in the book. As far as I understand:

P1 -> ()
P2 -> (1,2,3)
P3 -> (2,3)
P4 -> (1,2)
P5 -> (1,3)
P6 -> ??? also (1,2,3) ???


So my question is to set the correct map from sage to my book...

edit retag close merge delete

Sort by ยป oldest newest most voted

The results of

sage: G = SymmetricGroup(3)
sage: G.list()
[(), (2,3), (1,2), (1,2,3), (1,3,2), (1,3)]


are given in cycle notation. So the book's equivalent of (1,3,2) is one where 1 becomes 3, 3 becomes 2, and 2 becomes 1, which is P6, if I'm reading correctly.

If you want to match the bottom three elements of your matrix, you can simply convert each to a list, or maybe a dict would make the mapping more explicit:

sage: for g in G:
....:     print g, g.list(), g.dict()
....:
() [1, 2, 3] {1: 1, 2: 2, 3: 3}
(2,3) [1, 3, 2] {1: 1, 2: 3, 3: 2}
(1,2) [2, 1, 3] {1: 2, 2: 1, 3: 3}
(1,2,3) [2, 3, 1] {1: 2, 2: 3, 3: 1}
(1,3,2) [3, 1, 2] {1: 3, 2: 1, 3: 2}
(1,3) [3, 2, 1] {1: 3, 2: 2, 3: 1}

more

That's very cool. I did this: for e in sorted(G): print '{0:>8s}{1:>10s}{2:>19s}'.format(e, e.list(), e.dict()) (I type more then, but it inserts >...)

( 2012-06-12 12:52:40 +0100 )edit
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}