How is permutation calculated?
Permutations that can be made by selecting r elements from a set of elements with n are calculated by the following formula.