Counting Principles, Permutations, and Combinations

Scope Label

Core 9758. This note covers the basic language and formulas needed before handling harder restrictions or special arrangements.

Use it with the hub Permutations and Combinations.

The First Decision: Add or Multiply

The addition and multiplication principles are the foundation of counting.

Use the addition principle when the outcome can occur in one of several separate cases.

If there are ways for case A and ways for case B, and the cases do not overlap, then there are

ways in total.

The cases must be mutually exclusive. If sets and overlap, either rewrite them as disjoint cases or use

The overlap is subtracted once because it was included once in each separate count.

Use the multiplication principle when the outcome is built through successive stages.

If stage 1 can be done in ways and, after every stage-1 choice, stage 2 can be done in ways, then there are

ways in total.

If the number of stage-2 choices depends on the first choice, use a branch count instead: multiply along each branch, then add the mutually exclusive branch totals. The multiplication principle is about building one outcome through stages; it is not an assumption of probabilistic independence.

How to read this figure. The left panel assumes the cases do not overlap; otherwise subtract the repeated overlap or split into disjoint cases. The right panel builds one outcome by completing every stage, so the stage counts multiply.

Example: Cases versus stages

A student chooses either one of 4 sandwiches or one of 3 drinks. If exactly one item is chosen, the number of choices is

If the student chooses one sandwich and one drink, the number of choices is

The numbers are similar, but the structure is different.

Factorial Notation

Factorial notation appears when distinct objects are arranged in order.

For a positive integer ,

For example,

The convention

is important. There is one way to make no choice or arrange no remaining objects.

Here is a non-negative integer. The formulas below use integers with unless stated otherwise.

Arranging All Distinct Objects

If distinct objects are arranged in a row, the number of arrangements is

Reason:

  • choices for the first position
  • choices for the second position
  • choices for the third position
  • continuing until 1 choice remains

Therefore,

Permutations: Arranging Some Objects

A permutation counts an ordered arrangement.

The number of ways to arrange objects chosen from distinct objects, without replacement, is

In factorial form,

Use when:

  • objects are chosen from
  • the chosen objects are placed in ordered positions
  • changing the order gives a different outcome

Ordered Sequences with Repetition Allowed

If an ordered sequence has positions and every position has all symbols available, including symbols used earlier, the multiplication principle gives

For this repeated-choice formula, and are integers. There is no requirement that , because a symbol may be used again. When , the one empty sequence agrees with .

For example, a four-character code made from seven letters, with repetition allowed, has possibilities. Without repetition it has possibilities.

Repeated choices versus identical objects

“Repetition allowed” means a choice may be made again. “Identical objects” means a fixed collection already contains indistinguishable copies. The first usually gives repeated multiplication; the second usually requires division for invisible swaps.

Example: Ordered positions

There are 8 students and 3 different roles: chairperson, secretary, and treasurer.

The number of ways is

Order matters because the roles are different.

Combinations: Selecting Objects

A combination counts an unordered selection.

The number of ways to choose objects from distinct objects, without replacement, is

Use when:

  • objects are chosen from
  • the order of the chosen objects does not matter
  • the selected group has no internal roles or ranking

Example: Committee selection

There are 8 students and 3 are chosen for a committee.

The number of committees is

The group is the same committee as .

How to read this figure. It holds the selected set fixed. Its six orders are six ordered outcomes but collapse to one unordered outcome when internal order is not part of the result.

Relationship Between and

The relationship is

This says:

  1. choose the objects
  2. arrange the chosen objects

So

The division by removes the internal order of the selected objects.

This is often the most useful way to understand combinations. A combination is not a new kind of magic formula; it is a permutation after internal order has been ignored.

This also provides a check: if you first choose objects and then assign them to ordered positions, your product should equal .

How to read this figure. Every ordered -tuple can be produced uniquely by first selecting its objects and then ordering that selected set. Because neither stage repeats or omits an ordered outcome, the stage counts multiply.

Useful Combination Identities

Symmetry

Choosing objects to include is equivalent to choosing objects to exclude.

For example,

Edge cases

There is one way to choose nothing, and one way to choose everything.

Pascal’s identity

For ,

Fix one particular object. A selection of objects either excludes it, giving choices, or includes it, leaving choices for the remaining places. These two cases are disjoint and exhaustive.

Grouping Problems

Grouping problems require special care because groups may be labelled or unlabelled.

Labelled groups

If 6 students are split into a Red team of 3 and a Blue team of 3, the teams are labelled.

Choose the Red team:

The remaining students automatically form the Blue team.

More generally, splitting distinct people into labelled groups of sizes , where , gives

The group labels make exchanging whole groups a genuine new allocation.

Unlabelled groups

If 6 students are split into two unlabelled groups of 3, then temporarily calling the groups “group A” and “group B” overcounts by .

The number of ways is

The division removes the artificial swap of the two whole groups.

For unlabelled groups of the same size and role, divide by a further because permuting those whole groups changes nothing. Thus six people split into three unlabelled pairs can be counted as

Do not divide for groups that are distinguished by labels or by unequal sizes. If several classes of interchangeable groups occur, divide by the factorial for each class of identical whole groups.

How to read this figure. Labelling equal-sized groups makes swapping whole groups observable. If the groups are unlabelled, those whole-group permutations are repeated descriptions of the same allocation and must be divided out.

Core Worked Examples

Example 1: Arranging letters without repetition

How many 4-letter codes can be formed from 7 distinct letters without repetition?

The positions are ordered, so use permutations:

Example 2: Choosing a team

How many teams of 4 can be chosen from 9 students?

The team has no internal order, so use combinations:

Example 3: Choose then assign roles

From 9 students, choose 4 students for a team, then appoint one of the chosen students as captain.

One method is:

Another method is:

Both count the same thing: choose the captain, then choose the other 3 team members.

Common Pitfalls

  • Treating every selection problem as an arrangement problem.
  • Forgetting that different roles make order matter.
  • Dividing by when the order is actually meaningful.
  • Using addition when stages should be multiplied.
  • Using multiplication when cases overlap.
  • Forgetting that cases must be mutually exclusive before adding.