Chapter Set Proofs Duscreate
Chapter Set Proofs Duscreate
© ª
Generally, a set A will be expressed in set-builder notation A = x : P(x) ,
where P(x) is some statement (or open sentence) about x. The set A is
understood to have as elements all those things x for which P(x) is true. For
example,
© ª © ª
x : x is an odd integer = . . . , −5, −3, −1, 1, 3, 5, . . . .
© ª
A common variation of this notation is to express a set as A = x ∈ S : P(x) .
Here it is understood that A consists of all elements x of the (predetermined)
set S for which P(x) is true. Keep in mind that, depending on context, x
could be any kind of object (integer, ordered pair, set, function, etc.). There is
also nothing special about the particular variable x; any reasonable symbol
x, y, k, etc., would do. Some examples follow.
n ∈ Z : n is odd
© ª © ª
= . . . , −5, −3, −1, 1, 3, 5, . . .
x ∈ N : 6| x
© ª © ª
= 6, 12, 18, 24, 30, . . .
(a, b) ∈ Z × Z : b = a + 5
© ª © ª
= . . . , (−2, 3), (−1, 4), (0, 5), (1, 6), . . .
X ∈ P (Z) : | X | = 1
© ª © © ª© ª© ª© ª© ª© ª ª
= ..., −1 , 0 , 1 , 2 , 3 , 4 ,...
© ª
Now it should be clear how to prove that an object a belongs to a set x : P(x) .
© ª
Since x : P(x) consists of all things x for which P(x) is true, to show that
© ª
a ∈ x : P(x) we just need to show that P(a) is true. Likewise, to show
© ª
a ∈ x ∈ S : P(x) , we need to confirm that a ∈ S and that P(a) is true. These
ideas are summarized below. However, you should not memorize these
methods, you should understand them. With contemplation and practice,
using them becomes natural and intuitive.
© ª © ª
How to show a ∈ x : P(x) How to show a ∈ x ∈ S : P(x)
Show that P(a) is true. 1. Verify that a ∈ S .
2. Show that P(a) is true.
set has form A = x : P(x) where P(x) is the open sentence (x ∈ N)∧(7 | x). Thus
© ª
21 ∈ A because P(21) is true. Similarly, 7, 14, 28, 35, etc., are all elements of
A . But 8 ∉ A (for example) because P(8) is false. Likewise −14 ∉ A because
P(−14) is false.
Example 11.2 Consider the set A = X ∈¯P (N) : | X | = 3 . We know that
© ª
10, 854, 3 ∈ A , etc. However 1, 2, 3, 4 ∉ A because ¯ 1, 2, 3, 4 ¯ 6= 3. Further,
− 1, 2, 3 ∉ A because − 1, 2, 3 ∉ P (N).
© ª © ª
268 Proofs Involving Sets
(8, 23) ∈ B because (8, 23) ∈ Z × Z and 8 ≡ 23 (mod 5). Likewise, (100, 75) ∈ B,
(102, 77) ∈ B, etc., but (6, 10) ∉ B.
Now suppose n ∈ Z and consider the ordered pair (4n + 3, 9n − 2). Does
this ordered pair belong to B? To answer this, we first observe that (4n +
3, 9n − 2) ∈ Z × Z. Next, we observe that (4n + 3) − (9n − 2) = −5n + 5 = 5(1 − n),
¡ ¢
so 5 | (4n + 3) − (9n − 2) , which means (4n + 3) ≡ (9n − 2) (mod 5). Therefore we
have established that (4n + 3, 9n − 2) meets the requirements for belonging
to B, so (4n + 3, 9n − 2) ∈ B for every n ∈ Z.
Example 11.4 This illustrates another common way of defining a set.
Consider the set C = 3x3 + 2 : x ∈ Z . Elements of this set consist of all the
© ª
“If a ∈ A , then a ∈ B”
Prove that x ∈ Z : 18 | x ⊆ x ∈ Z : 6 | x .
© ª © ª
Example 11.5
Proof. Suppose a ∈ x ∈ Z : 18 | x .
© ª
x ∈ Z : 18 | x ⊆ x ∈ Z : 6 | x .
© ª © ª
■
Prove that x ∈ Z : 2 | x ∩ x ∈ Z : 9 | x ⊆ x ∈ Z : 6 | x .
© ª © ª © ª
Example 11.6
Proof. Suppose a ∈ x ∈ Z : 2 | x ∩ x ∈ Z : 9 | x .
© ª © ª
so it follows that x ∈ Z : 2 | x ∩ x ∈ Z : 9 | x ⊆ x ∈ Z : 6 | x .
© ª © ª © ª
■
(x, y) ∈ Z × Z : x ≡ y (mod 3) .
© ª
■
270 Proofs Involving Sets
P (A) ∪ P (B) =
© © ª© ª© ªª © © ª © ª © ªª
;, 1 , 2 , 1, 2 ∪ ;, 2 , 3 , 2, 3
© © ª© ª© ª© ª© ªª
= ;, 1 , 2 , 3 , 1, 2 , 2, 3 .
Also P (A ∪ B) = P ( 1, 2, 3 ) = ;, 1 , 2 , 3 , 1, 2 , 2, 3 , 1, 3 , 1, 2, 3 . Thus,
© ª © © ª© ª© ª© ª© ª© ª© ªª
Example 11.8 Prove: If A and B are sets, then P (A) ∪ P (B) ⊆ P (A ∪ B).
How to Prove A = B
Proof.
[Prove that A ⊆ B.]
[Prove that B ⊆ A .]
Therefore, since A ⊆ B and B ⊆ A ,
it follows that A = B. ■
Prove that n ∈ Z : 35 | n = n ∈ Z : 5 | n ∩ n ∈ Z : 7 | n .
© ª © ª © ª
Example 11.10
n ∈ Z : 5| n ∩ n ∈ Z : 7| n .
© ª © ª
■
You know from algebra that if c 6= 0 and ac = bc, then a = b. The next
example shows that an analogous statement holds for sets A, B and C . The
example asks us to prove a conditional statement. We will prove it with
direct proof. In carrying out the process of direct proof, we will have to use
the new techniques from this section.
Example 11.11 Suppose A , B, and C are sets, and C 6= ;. Prove that if
A × C = B × C , then A = B.
Now we’ll look at another way that set operations are similar to oper-
ations on numbers. From algebra you are familiar with the distributive
property a · (b + c) = a · b + a · c. Replace the numbers a, b, c with sets A, B, C,
and replace · with × and + with ∩. We get A × (B ∩ C) = (A × B) ∩ (A × C). This
statement turns out to be true, as we now prove.
Example 11.12 Given sets A , B, and C , prove A × (B ∩ C) = (A × B) ∩ (A × C).
Occasionally you can prove two sets are equal by working out a series of
equalities leading from one set to the other. This is analogous to showing two
algebraic expressions are equal by manipulating one until you obtain the
other. We illustrate this in the following example, which gives an alternate
solution to the previous example. You are cautioned that this approach
is sometimes difficult to apply, but when it works it can shorten a proof
dramatically.
Before beginning the example, a note is in order. Notice that any state-
ment P is logically equivalent to P ∧ P . (Write out a truth table if you are in
doubt.) At one point in the following example we will replace the expression
x ∈ A with the logically equivalent statement (x ∈ A) ∧ (x ∈ A).
Example 11.13 Given sets A , B, and C , prove A × (B ∩ C) = (A × B) ∩ (A × C).
Are there other perfect numbers? How can they be found? Do they obey
any patterns? These questions fascinated the ancient Greek mathemati-
cians. In what follows we will develop an idea—recorded by Euclid—that
partially answers these questions. Although Euclid did not use sets, we will
nonetheless phrase his idea using the language of sets.
Since our goal is to understand what numbers are perfect, let’s define
the following set:
P = p ∈ N : p is perfect .
© ª
© ª
Therefore P = 6, 28, 496, 8128, . . . , but it is unclear what numbers are in P
other than the ones listed. Our goal is to gain a better understanding of
just which numbers the set P includes. To do this, we will examine the
following set A . It looks more complicated than P , but it will be very helpful
for understanding P , as we will soon see.
In words, A consists of every natural number of form 2n−1 (2n − 1), where
2n − 1 is prime. To get a feel for what numbers belong to A , look at the
following table. For each natural number n, it tallies the corresponding
numbers 2n−1 and 2n − 1. If 2n − 1 happens to be prime, then the product
2n−1 (2n − 1) is given; otherwise that entry is labeled with an ∗.
Notice that the first four entries of A are the perfect numbers 6, 28, 496
and 8128. At this point you may want to jump to the conclusion that A = P .
But it is a shocking fact that in over 2000 years no one has ever been able
to determine whether or not A = P . But it is known that A ⊆ P , and we will
now prove it. In other words, we are going to show that every element of A
is perfect. (But by itself, that leaves open the possibility that there may be
some perfect numbers in P that are not in A .)
The main ingredient for the proof will be the formula for the sum of a
geometric series with common ratio r . You probably saw this most recently
in Calculus II. The formula is
n r n+1 − 1
rk =
X
.
k=0 r−1
(See the solution for Exercise 19 in Section 12.4 for a proof of this formula.)
Now we are ready to prove our result. Let’s draw attention to its significance
by calling it a theorem rather than a proposition.
p ∈ N : p is perfect , then A ⊆ P .
© ª
for some n ∈ N for which 2n − 1 is prime. We want to show that p ∈ P , that is,
we want to show p is perfect. Thus, we need to show that the sum of the
positive divisors of p that are less than p add up to p. Notice that since 2n − 1
is prime, any divisor of p = 2n−1 (2n − 1) must have the form 2k or 2k (2n − 1)
for 0 ≤ k ≤ n − 1. Thus the positive divisors of p are as follows:
20 , 21 , 22 , . . . 2n−2 , 2n−1 ,
20 (2n − 1), 21 (2n − 1), 22 (2n − 1), . . . 2n−2 (2n − 1), 2n−1 (2n − 1).
Notice that this list starts with 20 = 1 and ends with 2n−1 (2n − 1) = p.
Case Study: Perfect Numbers 277
If we add up all these divisors except for the last one (which equals p)
we get the following:
nX
−1 nX
−2 nX
−1 nX
−2
2k + 2k (2n − 1) = 2k + (2n − 1) 2k
k=0 k=0 k=0 k=0
= (2n − 1) + (2n − 1)(2n−1 − 1) (by Equation (11.1))
= [1 + (2n−1 − 1)](2n − 1)
= 2n−1 (2n − 1)
= p (by Equation (11.2)).
This shows that the positive divisors of p that are less than p add up to
p. Therefore p is perfect, by definition of a perfect number. Thus p ∈ P , by
definition of P .
We have shown that p ∈ A implies p ∈ P , which means A ⊆ P . ■
Combined with the chart on the previous page, this theorem gives us
a new perfect number! The element p = 213−1 (213 − 1) = 33, 550, 336 in A is
perfect.
Observe also that every element of A is a multiple of a power of 2, and
therefore even. But this does not necessarily mean every perfect number
is even, because we’ve only shown A ⊆ P , not A = P . For all we know there
may be odd perfect numbers in P − A that are not in A .
Are there any odd perfect numbers? No one knows.
In over 2000 years, no one has ever found an odd perfect number, nor
has anyone been able to prove that there are none. But it is known that the
set A does contain every even perfect number. This fact was first proved by
Euler, and we duplicate his reasoning in the next theorem, which proves
that A = E , where E is the set of all even perfect numbers. It is a good
example of how to prove two sets are equal.
For convenience, we are going to use a slightly different definition of a
perfect number. A number p ∈ N is perfect if its positive divisors add up
to 2p. For example, the number 6 is perfect since the sum of its divisors is
1 + 2 + 3 + 6 = 2 · 6. This definition is simpler than the first one because we do
not have to stipulate that we are adding up the divisors that are less than
p. Instead we add in the last divisor p, and that has the effect of adding an
additional p, thereby doubling the answer.
278 Proofs Involving Sets
p = 2n−1 q. (11.3)
20 d 1 20 d 2 20 d 3 ... 20 d m
21 d 1 21 d 2 21 d 3 ... 21 d m
22 d 1 22 d 2 22 d 3 ... 22 d m
23 d 1 23 d 2 23 d 3 ... 23 d m
.. .. .. ..
. . . .
n−1 n−1 n−1 n−1
2 d1 2 d2 2 d3 ... 2 dm
so that
(2n − 1 + 1)q (2n − 1)q + q q
d1 + d2 + d3 + · · · + d m = = = q+ n .
2n − 1 2n − 1 2 −1
From this we see that 2nq−1 is an integer. It follows that both q and 2nq−1
are positive divisors of q. Since their sum equals the sum of all positive
divisors of q, it follows that q has only two positive divisors, q and 2nq−1 .
Since one of its divisors must be 1, it must be that 2nq−1 = 1, which means
q = 2n − 1. Now a number with just two positive divisors is prime, so q = 2n − 1
is prime. Plugging this into Equation (11.3) gives p = 2n−1 (2n − 1), where
2n − 1 is prime. This means p ∈ A , by definition of A . We have now shown
that p ∈ E implies p ∈ A , so E ⊆ A .
Since A ⊆ E and E ⊆ A , it follows that A = E . ■
Do not be alarmed if you feel that you wouldn’t have thought of this
proof. It took the genius of Euler to discover this approach.
We’ll conclude this chapter with some facts about perfect numbers.
As mentioned earlier, no one knows whether or not there are any odd
perfect numbers. It is not even known whether there are finitely many or
infinitely many perfect numbers. It is known that the last digit of every
even perfect number is either a 6 or an 8. Perhaps this is something you’d
enjoy proving.
We’ve seen that perfect numbers are closely related to prime numbers
that have the form 2n − 1. Such prime numbers are called Mersenne
primes, after the French scholar Marin Mersenne (1588–1648), who popu-
larized them. The first several Mersenne primes are 22 − 1 = 3, 23 − 1 = 7, 25 −
1 = 31, 27 − 1 = 127 and 213 − 1 = 8191. To date, only 48 Mersenne primes are
known, the largest of which is 257,885,161 − 1. There is a substantial cash prize
for anyone who finds a 49th. (See http://www.mersenne.org/prime.htm.)
You will probably have better luck with the exercises.
280 Proofs Involving Sets
2. Prove that 6n : n ∈ Z = 2n : n ∈ Z ∩ 3 n : n ∈ Z .
© ª © ª © ª
3. If k ∈ Z, then n ∈ Z : n | k ⊆ n ∈ Z : n | k2 .
© ª © ª
4. If m, n ∈ Z, then x ∈ Z : mn | x ⊆ x ∈ Z : m | x ∩ x ∈ Z : n | x .
© ª © ª © ª