Skip to main content
1 of 2
Jianrong Li
  • 6.2k
  • 2
  • 21
  • 34

How to return elements of a given length in a symmetric group using Sage?

Let $S_n$ be the symmetric group over $\{1,2,\ldots,n\}$. How to return elements of length $m$ in $S_n$ using Sage? I try to find such function in Sage but didn't find one. Thank you very much.

Jianrong Li
  • 6.2k
  • 2
  • 21
  • 34