What is the formula of nPr and nCr in permutations and combinations?
The nPr formula, used for permutations, calculates the number of ways to arrange $r$ objects from $n$ objects where the order matters. It is given by:
$
n P r=\frac{n!}{(n-r)!}
$
The nCr formula, used for combinations, calculates the number of ways to choose $r$ objects from $n$ objects where the order does not matter. It is expressed as:
$
n C r=\frac{n!}{r!(n-r)!}
$