Olympiad Maths Prep

Track / Stage 6 / 352 of 400 #1352 of 2000

Problem 1352

National olympiad, first round
Number theory Difficulty 6.8 Find the answer

A set SS of natural numbers is called [i]good[/i], if for each element xS,xx \in S, x does not divide the sum of the remaining numbers in SS. Find the maximal possible number of elements of a [i]good [/i]set which is a subset of the set A={1,2,3,...,63}A = \{1,2, 3, ...,63\}.

Official solution

1. Define the problem and notation:
We are given a set A={1,2,3,,63} A = \{1, 2, 3, \ldots, 63\} and need to find the maximal possible number of elements in a subset SA S \subseteq A such that S S is a *good* set. A set S S is called *good* if for each element xS x \in S , x x does not divide the sum of the remaining numbers in S S .

2. **Sum of elements in S S :**
Let s(S) s(S) denote the sum of all elements in the set S S . For S S to be good, we need xs(S)x x \nmid s(S) - x for all xS x \in S . This is equivalent to xs(S) x \nmid s(S) for all xS x \in S .

3. Exclusion of 1:
Since 1 1 divides any integer, 1 1 cannot be in S S . Therefore, S{2,3,,63} S \subseteq \{2, 3, \ldots, 63\} .

4. **Upper bound on the size of S S :**
Consider the set {2,3,,63} \{2, 3, \ldots, 63\} . The sum of this set is:
s({2,3,,63})=k=263k=636421=20161=2015 s(\{2, 3, \ldots, 63\}) = \sum_{k=2}^{63} k = \frac{63 \cdot 64}{2} - 1 = 2016 - 1 = 2015
We need to ensure that no element xS x \in S divides 2015.

5. Prime factorization of 2015:
2015=5×403=5×13×31 2015 = 5 \times 403 = 5 \times 13 \times 31
Therefore, S S cannot contain 5, 13, or 31.

6. Constructing a good set:
We can construct a good set by excluding 1, 5, 13, and 31 from {1,2,,63} \{1, 2, \ldots, 63\} . This gives us:
S={2,3,4,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63} S = \{2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63\}
This set has 634=59 63 - 4 = 59 elements.

7. Verification:
We need to verify that no element in this set divides the sum of the set. The sum of the set S S is:
s(S)=2016151331=1966 s(S) = 2016 - 1 - 5 - 13 - 31 = 1966
We need to check that no element xS x \in S divides 1966. Since 1966 is not divisible by any of the elements in S S , the set S S is indeed a good set.

The final answer is 59 \boxed{59} .

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.