ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 12 Apr 2020 22:25:40 +0200How to find the longest word in a subgroup of the symmetric group using Sage?https://ask.sagemath.org/question/50708/how-to-find-the-longest-word-in-a-subgroup-of-the-symmetric-group-using-sage/ Let $S_n$ be the symmetric group over $\\{1,2,\ldots,n\\}$. Let $J$ be a subset of $\\{1,\ldots, n-1\\}$ and let $W_J$ be the subgroup of $S_n$ generated by $s_j, j\in J \subset \\{1, \ldots, n-1\\}$, where $s_j$'s are simple reflections. How to find the longest word in $W_J$ in Sage? The following is some codes.
W = SymmetricGroup(8)
[s1,s2,s3,s4,s5,s6,s7] = W.simple_reflections()
Thank you very much.lijr07Sun, 12 Apr 2020 22:25:40 +0200https://ask.sagemath.org/question/50708/