Skip to main content

Permutations & Combinations

Permutations

Number of permutations of size kk for a set of size nn:

nPk=n!(nk)!nPk = \frac{n!}{(n - k)!}

Combinations

Number of combinations of size kk for a set of size nn:

nCk=n!k!(nk)!=nPkk!nCk = \frac{n!}{k!(n - k)!} = \frac{nPk}{k!}

The number of combinations is always less than the number of permutations because order matters for permutations.