سوال ۱۱۸ کنکور ارشد علوم کامپیوتر ۱۳۹۸
حداقل چه تعداد عدد متمایز دلخواه از مجموعهٔ باید برداریم تا مطمئن باشیم که در بین اعداد انتخابشده، دو عدد با ب.م.م بزرگتر از ۱ وجود دارد؟
پاسخ صحیح: گزینهٔ B — ۶
We must guarantee that two of the chosen numbers share a common factor (i.e. their exceeds , meaning they are not coprime). This is a worst-case / pigeonhole question, so we first find the largest subset of that we could pick while staying safe — a set in which every pair is coprime (). One more than that size is the answer.
Largest pairwise-coprime subset
The only primes up to are . Group the numbers by their prime factors:
| prime | multiples in |
|---|---|
If two chosen numbers share any prime, their . So in a pairwise-coprime set, each prime may be "used" by at most one chosen number. That allows at most one number contributing the factor , one contributing , one contributing , and one contributing — four numbers — plus the number , which is coprime to everything.
A concrete maximum pairwise-coprime set is which has elements and contains no pair with a common factor.
Apply the pigeonhole bound
- Choosing numbers is not enough: the set is a counterexample with all pairs coprime.
- Choosing numbers forces failure of the "all coprime" structure: with only available primes and the single number , any th distinct number must reuse a prime already represented, creating a pair with .
Hence the minimum guaranteeing count is
The answer is 6 (option 2).
Pitfall: Don't forget to include in the safe set — it is coprime to everything, so it enlarges the worst case from to , which is exactly why the threshold is and not .