Kahibaro
Discord Login Register

14.2 Combinatorics

Combinatorics is the study of how to count systematically. Instead of listing all possibilities by hand, combinatorics gives general principles and formulas that let you count quickly and reliably, even when the numbers involved are huge.

In this chapter, the focus is on:

You do not need any probability or advanced algebra here; just careful thinking and some basic arithmetic.

What “Counting” Means in Combinatorics

In everyday life, counting often means going 1, 2, 3, 4, … to find how many objects there are.

In combinatorics, “counting” usually means:

Some typical questions:

We are not usually interested in listing all possibilities, only in finding the total number.

A key part of combinatorics is deciding what counts as “different”:

This distinction—whether order matters—is central and will be explored further in the later chapters on permutations and combinations.

Counting Problems as Structured Choices

Combinatorial problems are often easier if you see them as a sequence of choices.

A typical problem:

If you can identify:

then you can often apply simple counting rules.

The main basic tools are:

These two principles are the backbone of elementary combinatorics.

The Addition Principle

The addition principle applies when you have alternatives and you must choose exactly one of them, and there is no overlap between the alternatives.

Informally:

More formally:

If you have two sets $A$ and $B$ of possible outcomes with no elements in common (they are disjoint), then
$$
|A \cup B| = |A| + |B|.
$$

In words: the number of elements in “$A$ or $B$” is the sum of the numbers in $A$ and in $B$, provided that no element belongs to both.

This idea applies beyond two sets. For pairwise disjoint sets $A_1, A_2, \dots, A_k$:
$$
\left|\bigcup_{i=1}^k A_i\right| = \sum_{i=1}^k |A_i|.
$$

You use the addition principle whenever a problem breaks into cases that:

If there is overlap, a simple $m+n$ risks double-counting. Handling overlap (for example, with inclusion–exclusion) is a more advanced topic and not the focus of this introductory chapter.

The Multiplication Principle

The multiplication principle applies to sequences of choices where each choice has a certain number of options, and each full outcome is formed by making all of the choices.

Informally:

In general, if a process involves $k$ steps, and:

then the total number of distinct outcomes is:
$$
n_1 \cdot n_2 \cdots n_k.
$$

You can think of this as counting the number of elements in a Cartesian product $A_1 \times A_2 \times \dots \times A_k$, where $|A_i| = n_i$:
$$
|A_1 \times A_2 \times \dots \times A_k| = n_1 n_2 \cdots n_k.
$$

You use the multiplication principle whenever an outcome is formed by making several independent choices in sequence.

Combining Addition and Multiplication Principles

Many realistic counting problems require using both principles, often in multiple stages.

General patterns:

For example, you might count possible objects of “type 1” and of “type 2” separately using the multiplication principle, then add these counts.

The ability to switch between these viewpoints—cases versus steps—is central to combinatorial thinking.

Counting with Restrictions

Real combinatorics problems almost always involve restrictions:

A common strategy is:

  1. Count without restrictions (often easier).
  2. Subtract forbidden cases (or split into allowed cases and use addition).
  3. Adjust the count according to the rules.

For example:

Thinking clearly about restrictions is essential preparation for the specific topics of permutations and combinations, where restrictions like “no repetition” and “order doesn’t matter” are central.

Factorials as a Counting Tool

A basic object that appears repeatedly in combinatorics is the factorial.

For a positive integer $n$, the factorial of $n$, written $n!$, is defined by
$$
n! = n \cdot (n-1) \cdot (n-2) \cdot \dots \cdot 2 \cdot 1,
$$
with the special definition
$$
0! = 1.
$$

Factorials naturally arise when counting arrangements of distinct objects. For example, the number of ways to order $n$ distinct items in a row is $n!$.

Understanding factorials is important because they appear in the formulas for permutations and combinations in the next chapters.

Combinatorial Thinking and Problem Strategy

Beyond specific formulas, combinatorics develops a way of thinking:

As problems grow more complex, these habits prepare you for more specialized tools:

Each of these is built on the basic ideas introduced in this chapter: counting carefully with clear rules, and using the addition and multiplication principles as fundamental tools.

Views: 107

Comments

Please login to add a comment.

Don't have an account? Register now!