First time here? Check out the FAQ!
answered 2020-04-10 18:01:42 +0100
Rather use the symmetric group, in that case.
sage: W = SymmetricGroup(8) sage: [s1,s2,s3,s4,s5,s6,s7] = W.simple_reflections() sage: w = s2*s4*s6; w (2,3)(4,5)(6,7) sage: w.tuple() (1, 3, 2, 5, 4, 7, 6, 8)