The Principle of Inclusion and Exclusion
[14/100%]Consider a set of objects. Let be the number of those objects that have a certain property , the number of those that have the property , , and the number of those that have the property and respectively. Similarly let denote the number of those objects that have simultaneously the properties and , and , , , and , , and , respectively. Then the number of those objects that have none of the properties , is given by
The principle stated by 21 deserves another proof which, although needing some introduction, exhibits more clearly the underlying basic set-theoretical (logical) ideas. We consider a finite or infinite set (the ``universe of discourse''). The characteristic function of a subset of is a function of the variable element of : or according as does, or does not, belong to . The characteristic function of has the constant value 1 ( thus stands also for unity) and the characteristic function of the empty set (the null set) has the constant value 0. The characteristic functions of the subsets will be denoted by , respectively. If there is no danger of misunderstanding, we may simplify the notation by writing for , etc., that is, by using the same symbol for a subset and its characteristic function. is a subset of if, and only if, for all values of , or, more simply, . If is a finite set, the number of elements of the subset is , where the summation is extended over all the elements of .
What is the characteristic function of
the complement of ,
the intersection of and ,
the union of and ?
Give another proof for Problem 21.
Assume that we have objects, . Let these all have property with the exception of the first object, all property with the exception of the second object, , and all property with the exception of the last th object. What do we obtain from Problem 21 applied to this case?
Prove Problem 189 of Part I by a combinatorial argument (cf. Problem 21 above and Problem 192 of Part I).
Prove Problem 208 of Part I by a combinatorial argument.
Prove that
See the definitions in Part I, Chap. 4, § 3; if the condition is not satisfied, must be interpreted as having the value 0.
How many of the terms in the expansion of a determinant of the th order remain, if all the elements of the principal diagonal are set equal to 0?
Observe 21: Let those terms have property that contain as a factor, etc.
Let be positive integers any two of which are relatively prime. How many numbers are there among the numbers , that are not divisible by any of the numbers ?
Cf. Problem 12.
Let the different prime factors of the number be denoted by . The number of numbers less than that have no common divisors different from 1 with is equal to
This number is generally denoted by (the Euler function). We set ; is thus the number of those numbers that are relatively prime to . This is the case for , since 1 has no common divisors different from 1 with itself.
Assume that we have any objects, that, as in 21, can have the properties . Associate with each individual object a value. Denote by the total value (the sum of the values) of those objects that have property , the total value of those with property , etc. Similarly let denote the total value of those objects that have simultaneously the properties and , and , , and , , and , respectively. If is the total value of all the objects, then the total value of those objects that have none of the properties is equal to
Let ; and be the numbers less than that have no common divisors different from 1 with . We then have
where are the different prime factors of , and is their number.
The number sought in 21 is
Briefly, in a somewhat extended meaning of the term (see the introduction to Problems 140 and 144 of Part I), the expression given in 21 ``envelops'' .
Let stand for the number of properties considered in 21. Define
and let denote the number of those objects that possess precisely of the properties considered, . It is easily seen (recognize the relation to binomial coefficients) that