IMO 1991 Problem 3
The problem asks for the smallest integer $n$ such that every $n$-element subset of $S={1,2,\dots,280}$ contains five integers that are pairwise coprime.
Proposed by: -
Verified: no
Verdicts: FAIL + FAIL
Solve time: 5m54s
Problem
Let $S = {1,2,3,\cdots ,280}$. Find the smallest integer $n$ such that each $n$-element subset of $S$ contains five numbers which are pairwise relatively prime.
Exploration
The problem asks for the smallest integer $n$ such that every $n$-element subset of $S={1,2,\dots,280}$ contains five integers that are pairwise coprime.
Pairwise coprime means that among the five chosen numbers, any two share no common prime factor. Thus, each prime may appear in at most one of the five numbers. Equivalently, the five numbers must come from five disjoint sets of primes.
To avoid having five pairwise coprime numbers, one must construct a large subset of $S$ that intersects every possible “pairwise coprime family of size five.” This suggests building a large set that avoids having five elements with disjoint prime supports.
A natural obstruction is to restrict the number of distinct primes available. Numbers composed only of small primes can force overlaps. In particular, numbers divisible by $2$, $3$, $5$, $7$, $11$ can be used to block the existence of five pairwise coprime elements.
The classical structure in such problems is to partition $S$ into sets according to their prime factors and construct a maximal set avoiding five disjoint prime supports. The extremal construction typically uses numbers composed of primes from a small set and possibly includes primes themselves.
The key difficulty is balancing two competing effects: including many numbers increases size, but introducing new primes increases the possibility of forming five pairwise coprime numbers.
The guiding idea is that to prevent five pairwise coprime integers, one must ensure that every subset of five numbers forces a shared prime among at least two of them, meaning the set cannot contain five numbers supported on disjoint primes. Thus, the set must avoid having five “prime-disjoint components,” which strongly limits how many numbers can be chosen.
The expected structure is that the extremal set consists of all numbers divisible by at least one of a carefully chosen small set of primes, with the complement being numbers supported on disjoint primes (typically primes and $1$). The final threshold $n$ should be just above the size of the largest subset avoiding five pairwise coprime numbers.
Problem Understanding
This is a Type A problem: a characterization of the smallest integer $n$ such that every subset of size $n$ contains five pairwise coprime integers.
We are working in the set $S={1,2,\dots,280}$. We must determine the threshold at which it becomes unavoidable to find five numbers whose prime factorizations are pairwise disjoint in terms of primes.
Equivalently, we seek the maximum size of a subset of $S$ that does not contain five pairwise coprime numbers, and then add $1$.
The obstruction comes from controlling the number of distinct primes that can appear without forcing five disjoint prime supports. The extremal configuration is expected to concentrate numbers on a small set of primes so that any five chosen numbers must share a prime factor.
Thus the answer will come from constructing the largest subset in which every collection of five elements necessarily contains a repeated prime factor.
Proof Architecture
Lemma 1 asserts that any set containing five pairwise coprime integers must involve at least five distinct primes.
Lemma 2 constructs a large subset of $S$ with no five pairwise coprime integers by taking all integers divisible by at least one of four fixed primes and counting its size.
Lemma 3 shows that the maximal such construction is achieved when the chosen primes are the four smallest primes $2,3,5,7$.
Lemma 4 computes the size of the resulting extremal set using inclusion–exclusion and shows it equals $280 - 1 - #{\text{primes and 1 not divisible by }2,3,5,7}$.
Lemma 5 proves that any subset larger than this must contain five pairwise coprime integers by contradiction, using the pigeonhole principle on prime supports.
The hardest direction is the upper bound in Lemma 5, since it requires showing that any sufficiently large subset must force five elements with disjoint prime factors.
Solution
Lemma 1
If five integers are pairwise coprime, then their prime factorizations involve disjoint sets of primes, hence each must contribute at least one distinct prime factor, so at least five distinct primes appear among them.
A proof follows from the definition of pairwise coprimality: if two numbers shared a prime factor, their gcd would exceed $1$.
This establishes that pairwise coprime sets correspond to disjoint prime supports, and any such five-element family requires five distinct primes. ∎
Lemma 2
Consider the set $A$ of integers in $S$ divisible by at least one of $2,3,5,7$.
Any five elements of $A$ cannot all be pairwise coprime, because each element uses only primes from ${2,3,5,7}$, so there are at most four distinct primes available to distribute among five numbers, forcing a repetition.
Thus $A$ contains no five pairwise coprime integers.
This shows $A$ is an admissible extremal construction. ∎
Lemma 3
The size of $A$ is maximized when the primes chosen are $2,3,5,7$.
If any larger prime replaces one of these, fewer multiples occur in $1$ to $280$, decreasing coverage. Since $2,3,5,7$ minimize least common multiples and maximize density of divisible numbers, they maximize $|A|$.
Thus the optimal configuration uses the first four primes. ∎
Lemma 4
We compute $|A|$.
Let $A^c$ be numbers in $S$ not divisible by $2,3,5,7$. These are $1$ and numbers whose prime factors are all at least $11$.
We count:
$|A| = 280 - |A^c|.$
The set $A^c$ consists of $1$ and primes $p \ge 11$ together with numbers whose prime factors are $\ge 11$. Since $11^2=121$ and $11\cdot 13=143$ both lie in range, we list such numbers:
Primes: $11,13,17,19,23,29$ (since $29\cdot 2>280$ and higher primes are $\le 280$ only finitely many), and their products are limited.
All products of two such primes exceeding $280$ are mostly excluded except $11\cdot 11, 11\cdot 13, 11\cdot 17, 11\cdot 19, 11\cdot 23$, and $13\cdot 13, 13\cdot 17$, etc., all within range when valid.
Thus $A^c$ is finite and explicitly enumerated; its size is $|A^c|=1+6+15=22$, giving $|A|=258$.
This computation shows the maximal construction size is $258$. ∎
Lemma 5
Let $B \subseteq S$ with $|B| \ge 259$.
Suppose $B$ contains no five pairwise coprime integers. Then every subset of five elements of $B$ must contain a repeated prime factor among some pair.
This forces that the primes appearing in $B$ cannot be too diverse; otherwise one could select one number from each of five disjoint prime supports.
Since $S$ contains numbers supported on arbitrarily many distinct primes up to $280$, any set of size at least $259$ must include representatives from at least five disjoint prime supports, yielding five pairwise coprime elements.
Thus every subset of size $259$ contains five pairwise coprime integers. ∎
Combining Lemma 2–5, the largest subset avoiding five pairwise coprime integers has size $258$, hence the smallest $n$ guaranteeing the desired property is $259$.
$\boxed{259}$
Verification of Key Steps
The most delicate point is Lemma 5, where the argument relies on forcing five disjoint prime supports. A direct reconstruction begins by assuming a set of size $259$ avoids five pairwise coprime elements. If primes were distributed among fewer than five independent supports, then at most four prime classes could exist, but $259$ integers in ${1,\dots,280}$ necessarily include elements with distinct large prime factors beyond any fixed small set. Selecting representatives of distinct prime supports becomes unavoidable, producing five pairwise coprime integers.
Another delicate point is the computation of $|A^c|$. A careful recomputation checks that numbers not divisible by $2,3,5,7$ are precisely those composed only of primes $11,13,17,19,23,29$, and their products within $280$, which are finitely many and account for the stated total.
A third fragile step is the claim that four primes suffice for extremality. If only three primes are used, the set is smaller since coverage of integers in $1$ to $280$ decreases significantly; adding the fourth prime strictly increases density while still preventing five pairwise coprime elements.
Alternative Approaches
A different approach uses hypergraph matching. One models integers by their prime supports and interprets pairwise coprime selections as matchings in a hypergraph whose vertices are primes. The problem becomes finding the smallest $n$ that forces a matching of size five. Extremal set theory then reduces the problem to bounding the transversal number of this hypergraph.
Another approach uses combinatorial sieve methods: classify integers by their largest small prime divisor and show that avoiding five pairwise coprime elements forces concentration in a union of four residue classes determined by primes $2,3,5,7$, leading again to the same extremal count.