So the total number of ways is
n×(n−1)×(n−2)×⋯×(n−(k−1))
This is the number of k-permutations from a set of size n, but its not too easy on the eyes! Fortunately, we can make it more presentable, since the value of the expression remains unchanged when it’s multiplied and divided by the same quantity:
n×⋯×(n−k+1)=(n−k)!n×⋯×(n−k+1)(n−k)!=(n−k)!n!
And voilà, this neat and tidy formula is often expressed through the notation P(n,k):
P(n,k)=(n−k)!n!
Tip: In case of difficulty recalling this formula, we go back to square one by applying the basic counting principle and rediscovering it from scratch.