Combinatorica`
Combinatorica`
Eulerian
Eulerian[n,k]
gives the number of permutations of length n with k runs.
Details and Options
- To use Eulerian, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Eulerian[n,k]
gives the number of permutations of length n with k runs.