Maths Olympiad Prep

Library / Balkan Mathematical Olympiad competition problems /8 of 16

Balkan Mathematical Olympiad competition problems

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 ∣mi∣≤K|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=⌈log⁡K+1N⌉n = \lceil \log_{K+1} N \rceil.

Note first that for n≤⌈log⁡K+1N⌉n \le \lceil \log_{K+1} N \rceil, taking ai=(K+1)i−1a_i = (K+1)^{i-1} works. Indeed let rr be maximal such that mr≠0m_r \ne 0. Then on the one hand we have
∣∑i=1nmiai∣≤∑i=1nK(K+1)i−1=(K+1)n−1<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=1nmiai∣≥∣mrar∣−∣∑i=1r−1miai∣≥(K+1)r−1−∑i=1r−1K(K+1)i−1=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 n≥⌈log⁡K+1N⌉n \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 ti≤Kt_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=1ntiai≡∑i=1nti′ai(modN). \sum_{i=1}^{n} t_i a_i \equiv \sum_{i=1}^{n} t'_i a_i \pmod N.
Now taking mi=ti−ti′m_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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

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