Permutations and combinations

Permutations and combinations are concepts in combinatorics, which is the branch of mathematics concerned with counting and arranging objects. A permutation is an arrangement of objects in a specific order. The number of permutations of n objects taken r at a time, denoted by P(n,r), is given by: P(n,r) = n!/(n-r)! where n! represents n…