Combinatronics

The Four Relevant Factors

Four things you need to identify for any combinatorics question:

  1. Combination or Permuation: Are we counting β€˜resulting selection’ with same items but differently ordered just once (combination) or for each different order (permuations)?
  2. With or Without Repetition: Are we selecting from types of objects or individual object instances? I.e. Can we have the same item type appear more than once in a resulting selection?
  3. Resulting Selection Size (𝒓): the number of instances of item in the resulting selection (a.k.a. the sample size)
  4. Number of Object Types (𝒏): number of types of the item we are selecting from (a.k.a. the number of objects).

Combination vs Permutation:

Each combination of 𝒓 items has many ways of arranging the order, known as permutations. Assuming no repetition of object types, there are 𝒓! permutations for each combination. If there is repetition, there is a much more complicated equation for the ratio.

  • In a β€˜combination’ the order is irrelevant and we count each time the same item types appears in the resulting selection but ignore combinations with a different order. Each combination has a number of possible permutations, which we ignore. E.g. in a slot machine where πŸ‡πŸπŸŠ == πŸπŸ‡πŸŠ == πŸπŸŠπŸ‡ etc. Collectively, the 6 possible β€˜permutations’ only represent 1 combination, and we only count the combinations. Another example of a combination is selecting people for a committee.
  • In a β€˜permutation’, the order is relevant and we count every order of object types that appears in the resulting selection. E.g. Numbers in a combination lock, or a committee with assigned roles.

With or Without Repetition

  • With Repetitions: Allow and count the repeating object types in the resulting selection. This is when there is a pool of object types rather than actual object instances. E.g. numbers, categories of objects.
  • Without repetitions: Don’t count or allow repeating objects types in the resulting selection. This is when there is a pool of individual instances of objects which can only be selected once E.g. physical objects or people.

Resulting Selection Size (𝒓)

  • 𝒓: A Sample a.k.a. β€˜Resulting selection’ , contains β€˜π’“β€™ item instances.

Number of Object Types (𝒏)

  • 𝒏: The pool of objects contains β€˜π’β€™ object types.

The Equations

All combinations (with or without repetition) and permutations (without repetition) are found using some version of the binomial coefficient equation:. This equation, often vocalised as β€˜π’ choose 𝒓’ or β€˜π’ choose π’Œβ€™ is expressed as either: $nCr$ or, $\binom{n}{r}$. \(\binom{n}{r} = \frac{n!}{r!(n-r)!}\)

Scientific calculators often have the binomial coefficient function normally written as β€˜$nCr$’ or β€˜$\binom{n}{r}$’ as above. The Windows 10 calculator doesn’t have this function, so the easiest way for quick calculation is to find an online calculator such as this.

Examples

Lets take the examples of a slot machine, committee, role assignment and a combination lock. Each example has a result selection (𝒓) of 3 and 10 object types or instances (𝒏).

Example Slot machine Combinations Committee Membership Role Assignment Combination Lock Code Permutations
Example of Resulting Selection ![[Pasted image 20220831035806.png]] ![[Pasted image 20220831050703.png]] ![[Pasted image 20220831051434.png]] ![[Pasted image 20220831055329.png]]
Object Types ![[Pasted image 20220831041049.png]] or blank ![[Pasted image 20220831055814.png]] ![[Pasted image 20220831055814.png]] ![[Pasted image 20220831041857.png]]
𝒓 \(𝒓=3\) \(𝒓=3\) \(r=3\) \(𝒓 = 3\)
𝒏 \(𝒏=10\) \(𝒏=10\) \(𝒏=10\) \(𝒏=10\)
Combination or Permuation Combination (Unordered) Combination (Unordered) Permutation (Ordered) Permutation (Ordered)
With or without Repetition With Repetitions (types) Without Repetitions (Instances) Without Repetitions (Instances) With repetitions (Types)
Equation Multiset \(\binom{n+r-1}{r}\) Combination \(\binom{n}{r}\) Permuation without repetition\(r!\binom{n}{r}\) Permuation with repetition \(n^r\)
Count \(220\) \(120\) \(720\) \(1000\)

Examples

See Also