Ask Your Question
2

How to list cosets

asked 2011-03-04 22:46:33 +0100

crr0929 gravatar image

updated 2011-03-04 23:13:25 +0100

How can I get sage to list all left and right cosets; for example, all cosets of A4 in S4. From a sample worksheet, I tried evaluating the following, but only got a traceback:

G = SymmetricGroup(3)
a = G("(1,2)")
H = G.subgroup([a])
rc = G.RightCoset(H, side='right'); rc

Traceback (click to the left of this block for traceback) ... AttributeError: 'SymmetricGroup_with_category' object has no attribute 'RightCoset'

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-03-04 23:22:24 +0100

Mike Hansen gravatar image

In Sage 4.6.2, which was just released, you can do

sage: G = SymmetricGroup(3) 
sage: a = G("(1,2)") 
sage: H = G.subgroup([a]) 
sage: G.cosets(H, side='right')
[[(), (1,2)], [(2,3), (1,3,2)], [(1,2,3), (1,3)]]

or

sage: G = SymmetricGroup(4)
sage: H = AlternatingGroup(4)
sage: G.cosets(H)
[[(), (2,3,4), (2,4,3), (1,2)(3,4), (1,2,3), (1,2,4), (1,3,2), (1,3,4), (1,3)(2,4), (1,4,2), (1,4,3), (1,4)(2,3)], [(3,4), (2,4), (2,3), (1,2), (1,2,4,3), (1,2,3,4), (1,4,3,2), (1,4), (1,4,2,3), (1,3,4,2), (1,3), (1,3,2,4)]]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-04 22:46:33 +0100

Seen: 2,421 times

Last updated: Mar 04 '11