Vocabularymath.combinatoricsInputs and outputs| n | a non-negative integer |
| k | a non-negative integer |
| nPk | an integer |
Word descriptionOutputs the total number of unique permutations of size
k (order does matter) that can be taken from a set of size
n.
ExamplesUSING: math.combinatorics prettyprint ;
10 4 nPk .
5040
Definition