Let and be positive integers, while is a prime number. Find the maximal (as a function of , and ) such that from an arbitrary group of positive integers, one can only choose among them, satisfying the following property: The numbers can be split into disjoint subsets of elements, such that the sum of the elements in each of the subsets gives the same residue modulo .
, 2022
Solution
. Assume and consider a set of positive integers, congruent , and . Clearly this set does not fulfill the statement, thus .
Lemma. Among every positive integers, there exist with sum, divisible by .
Proof. We apply induction to . For the base we have to show, that among every positive integers, there exist with sum, divisible by . Consider residues modulo , and via induction on , prove that for all the set of the residues of all sums of elements of an arbitrary -element set that does not contain equal elements, satisfies . For the statement is obvious. Assume, we proved it for and let be the different residues. Consider a -element set and two different elements in it and . Apply the inductive hypothesis to the remaining subset (it is clear that we can choose and such that, the remaining subset be admissible). Consider the sets and . If they do not coincide, we derive different residues and the auxiliary induction is completed. Assuming the sets coincide, we derive after summation that - a contradiction. Hence, we have proven the base for our major induction. Finally, if we have constructed our -element subset with sum, divisible by , then among the remaining numbers there are with sum, divisible by , and we can add them to the subset. The lemma is proved.
Now, applying consecutively the lemma, and extracting new elements with sum at each step, we will end up with disjoint subsets with sum of the elements , so the proof is completed.