Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 4 years ago

lijr07 gravatar image

How to find the longest word in a subgroup of the symmetric group using Sage?

Let Sn be the symmetric group over {1,2,,n}. Let J be a subset of {1,,n1} and let WJ be the subgroup of Sn generated by sj,jJ{1,,n1}, where sj's are simple reflections. How to find the longest word in WJ in Sage? The following is some codes.

W = SymmetricGroup(8)
[s1,s2,s3,s4,s5,s6,s7] = W.simple_reflections()

Thank you very much.