Every possible arrangement of n elements, in which all n elements are used, is called a Permutation of these elements.
The number of permutations are defined as:
n! = n*(n-1)*(n-2) ... 2 * 1
Exercise:
Write a function which calculates the factorial (n!) of a number n.