permutations

permutations(n)

permutations(n, k)

Try it yourself:

All functions