Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.5.8* (Torture chambers)
Exercise 4.5.8* (Torture chambers)
Say that a set of positive integers has property if no element of is a multiple of another. (a) Prove that there exists a subset of containing elements with property but that no subset of elements has property . (b) Prove the same results for subsets of . (c) How many elements are there in the largest subset of having property ?
Answers
Proof. Here is a positive integer.
- (a)
-
Existence of a subset
having property
and containing
elements.
Consider the subset of defined by
Then contains elements. Assume for the sake of contradiction that two distinct elements satisfy , so that there is some integer such that . Then , and , thus . But . This contradiction shows that has the property .
Non-existence of a subset having property and containing elements.
Consider for every odd positive integer the set
and the sequence , where
Since every integer is in a unique way in the form , where is an odd positive integer, and an integer, then is a partition of , that is
Suppose that contains elements.
Since , there are classes in the partition, so by the pigeonhole principle, there are two distinct elements in which are in the same for some odd integer . Then
thus , so has not the property . This shows that no subset of with elements has property .
- (b)
-
Let
be a subset of
. A fortiori,
is a subset of
. Therefore, by part (a),
has at most
elements. Moreover
has elements and has the property , so we obtain the same results for subsets of .
- (c)
-
Consider now a subset
of
satisfying the property
. We define for every odd
such that
the subset
and the sequence , where
is the set of such that .
As in part (a), is a partition of , with classes.
Let a subset of with elements. Then there are two elements in such that are in a same class , thus , so has not the property . This shows that every satisfying the property has at most elements.
If remains to estimate . Since
where is the larger integer such that , so , and is the larger integer such that , so . This gives
or equivalently (see Problem 4.1.15)
Consider now the particular solution
Then has elements. Moreover has the property : if two elements in are such that , then , where . Since and are odd, so . Moreover
where
Since the last inequality is true by definition of the greatest integer function, the first is true, so . This is a contradiction, because . This shows that has the property , where this particular has elements.
In conclusion, there are
elements in the largest subset of having property .
Numerical verification (with ipython):
from itertools import combinations def sequence3(j, n): l = [] intervalle = [2 * k + 1 for k in range(n)] for A in combinations(intervalle, j): test = True for (i,j) in combinations(A, 2): if j % i == 0: test = False if test: l.append(A) return(l) [max([j for j in range(1,n) if sequence3(j,n)]) for n in range(2, 15)] [1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9] [n - ( (n + 1) // 3) for n in range(2, 15)] [1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9] sequence3(8, 12) [(3, 5, 7, 11, 13, 17, 19, 23), (5, 7, 9, 11, 13, 17, 19, 23), (5, 9, 11, 13, 17, 19, 21, 23), (7, 9, 11, 13, 15, 17, 19, 23), (9, 11, 13, 15, 17, 19, 21, 23)] sequence3(7, 11) [(3, 5, 7, 11, 13, 17, 19), (5, 7, 9, 11, 13, 17, 19), (5, 9, 11, 13, 17, 19, 21), (7, 9, 11, 13, 15, 17, 19), (9, 11, 13, 15, 17, 19, 21)] sequence3(7, 10) [(3, 5, 7, 11, 13, 17, 19), (5, 7, 9, 11, 13, 17, 19), (7, 9, 11, 13, 15, 17, 19)]
This is in conformity with our results.