6.6.3 Permutations: perm nPr
The perm command computes numbers of
permutations.
nPr is a synonym for perm.
-
perm takes two arguments:
n and p, integers.
- perm(n,p) returns
Pnp, the number of permutations of n objects taken p at a time.
Example.
Input:
perm(5,2)
Output: