Mathematics · Ch 6 — Permutations and Combinations
Permutations with Repetition and Restrictions
Permutations with Repetition and Restrictions
The formula from Section 3 assumes every object is distinct and none is repeated in the arrangement. Three common variations extend this basic idea.
Permutations when repetition of objects is allowed
If each of the positions may independently reuse any of the available types (e.g. digits in a code, where the same digit can appear more than once), the number of choices for every position stays at — it never decreases, because nothing is "used up." By the Fundamental Principle of Counting applied times:
Number of -length arrangements from types, with repetition allowed .
For instance, filling 3 positions with digits from a set of 4 available digits, repetition allowed, gives arrangements — noticeably more than the no-repetition count , since reuse is now permitted at every stage.
Permutations when the objects themselves are not all distinct
Suppose objects are to be arranged in a row, but they are not all different — say of one kind are identical to each other, of a second kind are identical, and so on, with . If all objects were distinct, there would be arrangements; but swapping two identical objects with each other produces an arrangement that looks exactly the same, so the naive count over-counts every truly distinct arrangement by a factor of (the internal orderings of the first repeated kind) times , and so on. Dividing this overcount out gives:
Number of distinct arrangements of objects with objects alike of each kind
Restricted permutations
Many problems fix extra conditions on which arrangements are allowed:
- Particular objects fixed in particular positions. If certain positions are pre-assigned to certain objects, remove both from consideration and simply arrange the remaining objects in the remaining positions using or as appropriate.
- Particular objects always together. Glue the objects that must stay together into a single combined "block." Arrange this block along with the remaining separate objects (fewer total units now), then multiply by the number of ways the objects can be ordered within the block, since the FPC treats "arrange the units" and "arrange inside the block" as two independent stages of one combined process. …