First time here? Check out the FAQ!
answered 2023-05-02 21:57:52 +0100
According to the interpretation given in the comments, the desired representation as the product of 2-cycles can be obtained as
prod(Permutation((i,i+1)) for i in t1).cycle_tuples()