Combinatorica`
Combinatorica`

Derangements

Derangements[p]

constructs all derangements of permutation p.

Details and Options