Problem:
The set is to be partitioned into disjoint subsets such that for each , exactly one of the following statements is true:
(a) For all with , .
(b) For all with , .
Find the smallest value of for which this is possible.
Problem:
The set is to be partitioned into disjoint subsets such that for each , exactly one of the following statements is true:
(a) For all with , .
(b) For all with , .
Find the smallest value of for which this is possible.
Solution:
The answer is .
Note that there are primes at most , starting with and ending with . Thus, the following partition works for sets. Let , the multiples of in . Let , the remaining multiples of in not in . Let , the remaining multiples of , and so on and so forth, until we get to . consists of the remaining elements, i.e., and those numbers with no prime factors at most , i.e., the primes greater than but less than : .
Each of satisfies (a), while satisfies (b).
We show now that no partition in subsets is possible. Let a Type 1 subset of be a subset for which (a) is true and there exists an integer for which divides every element of . Let a Type 2 subset of be a subset for which (b) is true. Finally, let a Type 3 subset of be a subset for which (a) is true that is not a Type 1 subset. An example of a Type 3 subset would be a set of the form where are distinct primes.
Claim: Let be the sequence of prime numbers, where is the th prime. Every optimal partition of the set , i.e., a partition with the least possible number of subsets, has at least Type 1 subsets. In particular, every optimal partition of this set has subsets in total. To see how this follows, we look at two cases:
- If every prime has a corresponding Type 1 subset containing its multiples, then a similar partitioning to the above works: Take to as Type 1 subsets for each prime, and take to be everything left over. will never be empty, as it has in it. While in fact it is known that, for example, by Bertrand's postulate there is always some prime between and so has at least two elements, there is no need to go this far—if there were no other primes you could just move from into , and if then will still have at least three elements remaining. And if , there is no need to worry about this, because .
- On the other hand, if has no corresponding Type 1 subset, then and will not be contained in a Type 1 set. Neither can nor be contained in a Type 3 set. If for all in the same set as , then , which implies that is in a Type 1 set with . Similarly, if for all in the same set as , then for all , and so is in a Type 1 set with as well. Hence and must in fact be in Type 2 sets, and they cannot be in the same Type 2 set (as they share a common factor of ); this means that the optimal partition has at least subsets in total. A possible equality scenario for example is the sets , , and to Type 1 sets taking all remaining multiples of . This works, as and are the only multiples of in with no prime factor other than and thus cannot be classified into some other Type 1 set.
To prove our claim: We proceed by induction on . Trivially, this is true for . Suppose now that any optimal partition of the set has at least Type 1 subsets, and thus at least subsets in total. Consider now a partition of the set , and suppose that this partition would have at most subsets. From the above, there exist at least two primes with for which there are no Type 1 subsets. If we have a contradiction. Any such partition can be restricted to an optimal partition of with having no corresponding Type 1 subsets. This contradicts our inductive hypothesis. On the other hand, suppose that . Again restricting to gives us an optimal partition of with at most Type 1 sets; the inductive hypothesis tells us that this partition has in fact exactly Type 1 sets and two Type 2 sets from a previous argument establishing the consequence of the claim. However, consider now the element . This cannot belong in any Type 1 set, neither can it belong in the same Type 2 set as or . Thus in addition to the given Type 1 sets and Type 2 sets, we need an extra set to contain . Thus our partition of in fact has at least subsets, and not subsets as we wanted. The claim is thus proved.
Returning to our original problem, since , any partition of must restrict to a partition of , which we showed must have at least sets. Thus, we can do no better than .