This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


Updated In 6 Graphic
generates a list of all possible permutations of the elements in list.
Permutations[list, n]
gives all permutations containing at most n elements.
Permutations[list, {n}]
gives all permutations containing exactly n elements.
  • There are n! permutations of a list of n distinct elements.
  • Repeated elements are treated as identical.  »
  • The object list need not have head List.
  • Permutations[list, {nmin, nmax}] gives permutations of between nmin and nmax elements.
New in 1 | Last modified in 6