Previous Up Next

5.7.3  Permutations : perm nPr

perm or nPr takes as arguments two integers n and p.
perm(n,p) or nPr(n,p) returns Pnp.
Input :

perm(5,2)

Output :

20

Previous Up Next