Combinatorica`
Combinatorica`

PermutationQ

PermutationQ[p]

yields True if p is a list representing a permutation and False otherwise.

Details and Options