Theorem2.6.1Sum Rule
If A,B are disjoint finite sets then |A∪B|=|A|+|B|. More generally, if A1,…,An is a pairwise disjoint collection of finite sets, then
|n⋃j=1Aj|=n∑j=1|Aj|.It is often useful in both pure and applied mathematics to count the sizes of finite sets. In this section we prove some basic theorems of this sort. If A is a set, let |A| denote the number of elements in A. Note that ∅ is a finite set with |∅|=0.
If A,B are disjoint finite sets then |A∪B|=|A|+|B|. More generally, if A1,…,An is a pairwise disjoint collection of finite sets, then
|n⋃j=1Aj|=n∑j=1|Aj|.Obvious, but we omit the technical proof until we have a proper discussion of the definition of the number of elements in a set, which won't occur until Chapter 5.
For finite sets A,B, which are not necessarily disjoint,
|A∪B|=|A|+|B|−|A∩B|.Obvious when you look at a Venn diagram, but we omit the technical proof for similar reasons.
Let A1,…,An be a collection of finite sets. Then
|n⋃j=1Aj|=n∑j=1((−1)j+1∑1≤n1<⋯<nj≤n|j⋂k=1Ank|).In the above formula the sum is taken over all subcollections of j different sets from among A1,…,An. In particular, when n=3, the above becomes
|A1∪A2∪A3|=(|A1|+|A2|+|A3|)−(|A1∩A2|+|A1∩A3|+|A2∩A3|)+|A1∩A2∩A3|By induction and using Theorem 2.6.3.
If A,B are disjoint finite sets then |A×B|=|A|⋅|B|. More generally, if A1,…,An is a pairwise disjoint collection of finite sets, then
|A1×A2×⋯×An|=n∏j=1|Aj|.Using induction and the Sum Rule.
A permutation of a finite set is an arrangement of the elements in a particular order.
For the next theorem, recall that the factorial of a positive integer n is defined inductively by
0!=1n!=n(n−1)!Equivalently, n!=n(n−1)(n−2)⋯1.
The number of permutations of a set with n elements is n!
By induction on the number of elements in the set.
If n∈N and r∈Z with 0≤r≤n, then the number of permutations of any r distinct objects from a set of n objects is
n!(n−r)!=n(n−1)(n−2)⋯(n−r+1).By induction on \(r\) and Theorem 2.6.6.
For n∈N and r∈Z with 0≤r≤n, a combination of r elements from a set of size n is just a subset of size r.
The number of combinations is called the binomial coefficient and is denoted \binom{n}{r}\text{.} We read this symbol as “n choose r\text{.}”
We have the following formula for the binomial coefficients:
\begin{equation*} \binom{n}{r} = \frac{n!}{r!(n-r)!}. \end{equation*}Note that the number of permutations of any \(r\) distinct objects from a set of \(n\) objects is necessarily the number of subsets of size \(r\) (i.e., the number of combinations, the binomial coefficient) times the number of ways to arrange those \(r\) elements (i.e., permutations of a set of size \(r\)). Therefore, by Theorem 2.6.6 and Theorem 2.6.7, we have
\begin{equation*} \binom{n}{r} r! = \frac{n!}{(n-r)!} \end{equation*}thereby proving the result.
Note: the above theorem guarantees \binom{n}{r} = \binom{n}{n-r}\text{.}
If n \in \mathbb{N} and a,b \in \mathbb{R}\text{,} then
\begin{equation*} (a+b)^n = \sum_{r=0}^n \binom{n}{r} a^r b^{n-r}. \end{equation*}By induction and using the fact that when \(r \ge 1\text{,}\)
\begin{equation*} \binom{n}{r} = \binom{n-1}{r} + \binom{n-1}{r-1}, \end{equation*}which you should prove. This displayed equation essentially says that Pascal's triangle generates the binomial coefficients.