MathLabs

Problem 1

Prove that the set {1,2,…,1989}\{1, 2, \ldots, 1989\} can be expressed as the union of 117117 pairwise disjoint subsets A1,A2,…,A117A_1, A_2, \ldots, A_{117}, each containing 1717 elements, such that the sum of the elements is the same in every AiA_i.
Step 4 of 5: Give the leftover number 995 a home
In plain words

The odd one out, 995995, simply borrows a ready-made balanced pair to sit with, so it doesn't spoil the pattern.

{995}∪{r0,1990−r0}sums to995+1990=2985\{995\} \cup \{r_0, 1990-r_0\} \quad\text{sums to}\quad 995 + 1990 = 2985
Detailed analysis

Take one more untouched pair {r0,1990−r0}\{r_0,1990-r_0\} from Step 2 and combine it with the leftover 995995 to form a 117117th block {995,r0,1990−r0}\{995,r_0,1990-r_0\}; its sum is 995+1990=2985995+1990=2985, matching every triple from Step 3. Now all 117117 blocks are 33-element sets with the same sum 29852985, built from 175175 of the 994994 pairs plus the number 995995.