Derangements

Derangements[p]
constructs all derangements of permutation p.

DetailsDetails