1 | initial version |
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)]]