Pigeonhole Principle for sets

combinatoricspigeonhole-principle

I have been asked to answer the following question;

Let A = {2,3, …, 50}, that is A is the set of positive integers greater than 1 and less than 51. Determine the smallest number $x$ such that every subset of A having $x$ elements contains at least two integers that have a common divisor greater than 1, and justify your answer.

My attempt at the solution is by defining a set;
$$S=[s\in A |s\in primes]$$
This defines the set containing 15 integers with no 2 primes containing a common divisor greater than one divisible by 1 and themselves. Thus, $x>15.$
Now I thought of taking;
$$P=[p|p\in primes]$$
And then continue by partitioning this set into 15 subsets. But I'm not too sure where to go from here.

Any help would be greatly appreciated.

Best Answer

The answer is 16: to show that 15 is possible, just take $2,3,5,7,\ldots,47$.

Now for the fun part, making the pigeonholes. The first pigeonhole is $$S_1=\{2,4,6,8,\ldots\}$$ and the second is $$S_2=\{3,9,15,\ldots\}$$ Continuing thus, the $i$th set is (for $i>1$) $$S_i=\{p_i,\ldots\}$$ where $p_i$ is the $i$th prime, and the elements that occur in the set are multiples of $p_i$ which don't occur in previous sets.

Note that every positive integer ends up in one of these sets; in particular, the numbers 2-50 end up in the first 15 of these sets. Thus taking $16$ numbers guarantees two in the same set (by PHP) and we're done, since any two numbers in a set trivially share a factor.