117. Partitions
117.1 Definition: partition
If $C$ is a set, a family $\Pi$ of nonempty subsets of $C$ is called a partition of $C$ if
PAR.1 $C =\cup\Pi$, and
PAR.2 For all $A,B \in\Pi$, $A \neq B \Rightarrow A\cap B =\emptyset$.
117.1.1 Usage The elements of the partition $\Pi$ are called the blocks of $\Pi$. If $x \in C$, the block of $\Pi$ that has $x$ as an element is denoted $[x]_{\Pi}$, or just $[x]$ if the partition is clear from context.
117.1.2 Fact P.2 says the blocks of $\Pi$ (remember that these subsets of $C$) are pairwise disjoint: if they are different, they can’t overlap.
117.1.3 Fact P.1 and P.2 together are equivalent to saying that every element of $C$ is in exactly one block of $\Pi$.
117.1.4 Example Here are three partitions of the set $\{ 1, 2, 3, 4, 5\}$:
a) $\Pi_{1} =\{\{ 1, 2\},\{ 3, 4\},\{ 5\}\}$.
b) $\Pi_{2} =\{\{ 1\},\{ 2\},\{ 3\},\{ 4\},\{ 5\}\}$.
c) $\Pi_{3} =\{\{ 1, 2, 3, 4, 5\}\}$.
117.1.5 Example The set $\{\{ 1, 2\},\{ 3, 4\},\{ 5\},\emptyset \}$ is not a partition of any set because it contains the empty set as an element.
117.1.6 Example Let $S$ be any nonempty set and $A$ any proper nontrivial subset of $A$. Then $\{S,S -A\}$ is a partition of $A$ with two blocks.
117.1.7 Example The empty set has a unique partition which is also the empty set. It has no blocks.
117.1.8 Exercise Why does Example 117.1.6 have to require that $A$ be a proper nontrivial subset of $A$?
117.1.9 Worked Exercise Let $S$ be a nonempty finite set with $n$ elements. How many partititions of $S$ with exactly two blocks are there?
Answer There are $2^{n}-1$ nonempty subsets of $S$ and, except for $S$ itself, each one induces a two-block partition as in Example 117.1.6. This does not mean that there are $2^{n} -2$ two-block partitions because that would count each two-block partition twice (a subset and its complement each induce the same two-block partition). So the correct answer is that there are
$$\frac{1}{2}(2^{n}- 2) = 2^{n-1}-1$$
two-block partitions.
117.1.10 Warning One of the commonest mistakes made by people just beginning to learn counting is to come up with a seemingly reasonable technique which unfortunately counts some things more than once.
117.1.11 Exercise Find a formula for the number of partitions with exactly three blocks of an $n$-element set.
117.1.12 Usage A partition with a finite number of blocks (even though the blocks might be infinite sets) is commonly written as a tuple, e.g., $\Pi =\langle A_{i}\rangle_{i\in\mathbf{n}}$. Even so, if $\Pi'$ is another partition which is the same as $\Pi$ except for ordering, they are regarded as the same partition even though they are different tuples. We will follow that practice here.
117.1.13 Exercise Which of the following are partitions of $S =\{ 1, 2, 3, 4, 5\}$? Here, $A =\{ 1, 2\}, B =\{ 3, 4, 5\}, C =\{ 3\}, D =\{ 4, 5\}$.
a) $\{A,B\}$
b) $\{A,B,C\}$
c) $\{A,C,D\}$
d) $\{A,B,\emptyset \}$
e) $\{S\}$
f) $\{\{x\} \mid x \in S\}$
g) $\{C,S -C\}$
h) $\{A\cup C,D\}$
(Answer on page 250.)
117.2 Partition of $\mathrm{Z}$ by remainders
Any poesitive integer $n$ induces a very important partition of the set $\mathrm{Z}$ of integers. This partition is denoted $\mathrm{Z}/n$. The blocks of $\mathrm{Z}/n$ are the $n$ sets
$$C_{r} =\{m \in \mathrm{Z} \mid m \text{ leaves a remainder of } r \text{ when divided by } n\}$$
for $0\leq r < n$. For negative $m$ floored division must be used. (Observe that the notation “$C_{r}$” requires you to depend on context to know what $n$ is.) Thus $\mathrm{Z}/n=$ $\{C_{r} \mid 0\leq r < n\}$.
117.2.1 Remark It is important to understand that $\mathrm{Z}/n$ is a finite set, even though each block is an infinite set.
117.2.2 Example If $n= 3$, $\mathrm{Z}/3$ has three blocks. One of them is $C_{1}$, which is the set of integers which leave a remainder of 1 when divided by 3. Thus $1,-2$ and 16 are in $C_{1}$. $C_{0}$ is the set of integers divisible by 3. Thus $\mathrm{Z}/ 3 =\{C_{0},C_{1},C_{2}\}$.
117.3 Exercise set
In problems 117.3.1 through 117.3.5, provide an example of a partition $\Pi$ of $\mathrm{Z}$ with the given property.
117.3.1 $\Pi$ has at least one block with exactly three elements. (Answer on page 250.)
117.3.2 $\{ 1, 2\}$ and $\{ 3\}$ are blocks of $\Pi$.
117.3.3 $\Pi$ has at least one finite block and at least one infinite block.
117.3.4 $\Pi$ has an infinite number of finite blocks.
117.3.5 $\Pi$ has an infinite number of infinite blocks.
Pages 180–182 of the book (PDF).