Combinatorica`
Combinatorica`
Derangements
Derangements[p]
constructs all derangements of permutation p.
Details and Options
- To use Derangements, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Derangements[p]
constructs all derangements of permutation p.