سوال ۱۱۶ کنکور ارشد علوم کامپیوتر ۱۳۹۹
در یک گروه ۹۹ نفره، بین هر پنج نفر دو نفر همسن هستند و بین هر ۴ نفر، دو نفر هستند که در یک شهر متولد شدهاند. بیشترین مقدار K چقدر است، بهطوریکه گزاره زیر همواره درست باشد؟ «حداقل K نفر در این گروه هستند که هم سنشان برابر و هم متولد یک شهر هستند.»
پاسخ صحیح: گزینهٔ C — ۹
Translating the conditions into bounds on the number of classes
Group people by age. The condition “among every people, two are the same age” means there is no set of people all of distinct ages — otherwise those would violate the condition. So the number of distinct ages is at most :
Similarly, “among every people, two share a birthplace” means there is no set of people all from distinct cities, so the number of distinct birthplaces is at most :
Combine the two attributes
Each person is labeled by a pair . The number of possible distinct pairs is at most
We have people distributed among at most pairwise classes. By the generalized pigeonhole principle, some class contains at least
people — i.e. at least people share both the same age and the same birthplace. So the statement is always true for .
Why cannot be larger (the bound is tight)
We must exhibit a valid configuration in which no class exceeds , so can fail. Take exactly ages and cities, giving classes, and split as: three classes of people and nine classes of people.
- Every age appears (each age-class is nonempty), and only ages exist, so any people include two of the same age. ✓
- Every city appears, and only cities exist, so any people include two from the same city. ✓
- The largest class has exactly people, so “at least ” is false here.
Hence is not guaranteed, while always holds. The largest such is .
Exam trick: “Among every people, two share property ” is just a disguised cap on the number of classes of : at most classes. Multiply the caps for the two attributes to get the number of joint boxes, then apply .