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 3 of 5: Build 116 triples that already balance
In plain words

It's like building 116116 tiny, already-balanced mini-scales out of spare pairs, so later we only need to add matching weights to every scale to keep them level.

{301,801,1883} and {1689,1189,107} both sum to 2985=3×995\{301,801,1883\}\ \text{and}\ \{1689,1189,107\}\ \text{both sum to}\ 2985=3\times995
Detailed analysis

Take 5858 triples such as {301,801,1883},{302,802,1881},…,{358,858,1769}\{301,801,1883\},\{302,802,1881\},\ldots,\{358,858,1769\} (first coordinate up by 11, second up by 11, third down by 22 each time), together with their 5858 complementary triples {1689,1189,107},{1688,1188,109},…,{1632,1132,221}\{1689,1189,107\},\{1688,1188,109\},\ldots,\{1632,1132,221\} obtained by replacing each entry xx with 1990−x1990-x. Every triple listed sums to 2985=3×9952985=3\times995, because replacing xx by 1990−x1990-x in one coordinate and compensating by ∓1\mp1 in another keeps the total fixed, and the first triple already sums to 301+801+1883=2985301+801+1883=2985. This uses up 174174 of the 994994 pairs from Step 2 and produces 116116 disjoint triples, each of sum 29852985.