Question: how to calculate the permutations and combinations?
Answer: One could say that a permutation is an ordered combination. The number of permutations of n objects taken r at a time is determined by the following formula: P(n,r)=n! (n−r)!