Maths Olympiad Prep

Library / /8 of 17

Number theory Difficulty 7.6 National Olympiad, round 2 Prove it Balkan Mathematical Olympiad

Let KK and N>KN > K be fixed positive integers. Let nn be a positive integer and let a1,a2,,ana_1, a_2, \dots, a_n be distinct integers. Suppose that whenever m1,m2,,mnm_1, m_2, \dots, m_n are integers, not all equal to 00, such that miK|m_i| \le K for each ii, then the sum
i=1nmiai \sum_{i=1}^{n} m_i a_i
is not divisible by NN. What is the largest possible value of nn?

Solution

The answer is n=logK+1Nn = \lceil \log_{K+1} N \rceil.

Note first that for nlogK+1Nn \le \lceil \log_{K+1} N \rceil, taking ai=(K+1)i1a_i = (K+1)^{i-1} works. Indeed let rr be maximal such that mr0m_r \ne 0. Then on the one hand we have
i=1nmiaii=1nK(K+1)i1=(K+1)n1<N. \left| \sum_{i=1}^{n} m_i a_i \right| \le \sum_{i=1}^{n} K (K+1)^{i-1} = (K+1)^n - 1 < N.
On the other hand we have
i=1nmiaimrari=1r1miai(K+1)r1i=1r1K(K+1)i1=1>0. \left| \sum_{i=1}^{n} m_i a_i \right| \ge |m_r a_r| - \left| \sum_{i=1}^{r-1} m_i a_i \right| \ge (K+1)^{r-1} - \sum_{i=1}^{r-1} K (K+1)^{i-1} = 1 > 0.
So the sum is indeed not divisible by NN.

Assume now that nlogK+1Nn \ge \lceil \log_{K+1} N \rceil and look at all nn-tuples of the form (t1,,tn)(t_1, \dots, t_n) where each tit_i is a non-negative integer with tiKt_i \le K. There are (K+1)n>N(K+1)^n > N such tuples so there are two of them, say (t1,,tn)(t_1, \dots, t_n) and (t1,,tn)(t'_1, \dots, t'_n) such that
i=1ntiaii=1ntiai(modN). \sum_{i=1}^{n} t_i a_i \equiv \sum_{i=1}^{n} t'_i a_i \pmod N.
Now taking mi=titim_i = t_i - t'_i for each ii satisfies the requirements on the mim_i's but NN divides the sum
i=1nmiai, \sum_{i=1}^{n} m_i a_i,
a contradiction.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.