سوال ۱۱۲ کنکور ارشد علوم کامپیوتر ۱۴۰۳
کوچکترین مقدار چقدر است، بهطوریکه هر زیرمجموعه عضوی از مجموعه ، شامل سه عدد صحیح ، و باشد، بهطوریکه بر بخشپذیر باشد؟
پاسخ صحیح: گزینهٔ B — ۱۵
We work modulo . For distinct , no single difference can be divisible by (two numbers congruent mod in this range would be equal). So requires at least two of the three differences to be divisible by .
With three numbers, if two pairwise differences are divisible by then so is the third: if and , then . Hence the product is divisible by exactly when all three numbers lie in the same residue class mod (then product).
Now partition into the residue classes mod . Each class has exactly elements.
Largest "bad" subset (no valid triple). A subset avoids a same-class triple iff it takes at most elements from each class. The maximum such subset has
and a -element example (two per class) really has no valid triple. So does not force a triple.
Pigeonhole. Any subset of size has, by the pigeonhole principle, some residue class with at least elements — three numbers congruent mod , giving .
Therefore the smallest guaranteeing value is , option (2).
Exam trick: Reduce the divisibility condition to a coloring: "product of differences divisible by " "three points share a color mod ." Then it is just -per-class extremal counting plus pigeonhole; the smallest forcing is (max bad size) .