permutations
Calculate ordered arrangements of k items from a set of n items using the permutations tool in PyMCP. Ideal for solving combinatorial problems.
Instructions
Calculate the number of ways to choose k items from n items without repetition and with order. If k is not provided, it defaults to n.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
k | No | The optional number of items to choose. | |
n | Yes | The number of items to choose from. |