Maths Olympiad Prep

Library / /16 of 27

Number theory Difficulty 6.3 National olympiad Prove it Romania

For a finite non-empty set of primes PP, let P|P| be the size of the set PP, and m(P)m(P) be the largest possible number of consecutive positive integers, each of which is divisible by at least one member of PP.
(i) Show that Pm(P)|P| \le m(P), with equality if and only if min(P)>P\min(P) > |P|;
(ii) Show that m(P)<(P+1)(2P1)m(P) < (|P| + 1)(2^{|P|} - 1).

Solutions — 2

Solution 1

In the sequel we will consider PP being made of the primes 1<p1<p2<<pk1 < p_1 < p_2 < \dots < p_k, with k=P1k = |P| \ge 1.

a. By the Chinese Remainder Theorem there will exist some aNa \in \mathbb{N} such that ai(modpi)a \equiv -i \pmod{p_i}, hence pia+ip_i \mid a + i. Then the set {a+i;i=1,2,,k}\{a + i; i = 1, 2, \dots, k\} of kk consecutive integers has the desired property, hence m(P)km(P) \ge k. When minP>P\min P > |P|, within any set of P+1|P| + 1 consecutive integers at most one is divisible by any pPp \in P, hence by the Pigeonhole Principle there will be one not divisible by any of the primes in PP. On the other hand, when minPP\min P \le |P|, we will make again use of the Chinese Remainder Theorem, so there will exist some aNa \in \mathbb{N} such that ari(modpi)a \equiv -r_i \pmod{p_i}, hence pia+rip_i \mid a+r_i, where {ri;i=1,2,,k}={1,2,,k}\{r_i; i = 1, 2, \dots, k\} = \{1, 2, \dots, k\} and the extra requirement that r1=k+1p1r_1 = k+1-p_1. It follows that the set {a+i;i=1,2,,k,k+1}\{a+i; i = 1, 2, \dots, k, k+1\} of k+1k+1 consecutive integers has the desired property, hence m(P)k+1>Pm(P) \ge k+1 > |P|.

b. Now, let a set made of mm consecutive integers have the desired property. For any I{1,2,,k}\emptyset \ne I \subseteq \{1, 2, \dots, k\}, the number N(I)N(I) of its elements which are divisible by iIpi\prod_{i \in I} p_i will satisfy the inequality
miIpi1<miIpiN(I)miIpi<miIpi+1. \frac{m}{\prod_{i \in I} p_i} - 1 < \left\lfloor \frac{m}{\prod_{i \in I} p_i} \right\rfloor \le N(I) \le \left\lceil \frac{m}{\prod_{i \in I} p_i} \right\rceil < \frac{m}{\prod_{i \in I} p_i} + 1.
Then, by the Principle of Inclusion/Exclusion, one has
m=i=1k(1)i+1I=iN(I)<i=1k(ki)+mi=1k(1)i+1I=i1iIpi. m = \sum_{i=1}^{k} (-1)^{i+1} \sum_{|I|=i} N(I) < \sum_{i=1}^{k} \binom{k}{i} + m \sum_{i=1}^{k} (-1)^{i+1} \sum_{|I|=i} \frac{1}{\prod_{i \in I} p_i}.
The first term is clearly equal to 2k12^k - 1, while the second is equal to
m(1i=1k(11pi))m(1i=1k(11i+1))=mmk+1, m \left( 1 - \prod_{i=1}^{k} \left( 1 - \frac{1}{p_i} \right) \right) \le m \left( 1 - \prod_{i=1}^{k} \left( 1 - \frac{1}{i+1} \right) \right) = m - \frac{m}{k+1},
therefore m<(k+1)(2k1)m < (k+1)(2^k - 1), and so will be m(P)m(P).

Solution 2

Alternative Solution (ii). (F. Chindea)

Not only an elegant alternative approach, but vastly improving on the required bound. Start by proving the following

LEMMA. If the integer arithmetic sequences {mnj}mZ\{mn_j\}_{m \in \mathbb{Z}}, 1jk1 \le j \le k, are such that they cover 2k2^k consecutive integers, then they cover Z\mathbb{Z}.
(Particular case of a Crittenden & Vanden Eynden Theorem)

Proof. Let ωj=enj\omega_j = e^{n_j} be a primitive root of unity. Then njmn_j \mid m if and only if ωjm=1\omega_j^m = 1, hence mm is divisible by at least one njn_j if and only if 0=j=1k(1ωjm)=S[k](1)Se2mπijS1nj0 = \prod_{j=1}^k (1 - \omega_j^m) = \sum_{\emptyset \subseteq S \subseteq [k]} (-1)^{|S|} e^{2m\pi i \sum_{j \in S} \frac{1}{n_j}}. Denote αS=(1)S\alpha_S = (-1)^{|S|}, zS=e2πijS1njz_S = e^{2\pi i \sum_{j \in S} \frac{1}{n_j}}, um=S[k]αSzSmu_m = \sum_{\emptyset \subseteq S \subseteq [k]} \alpha_S z_S^m.

Consider the polynomial f(x)=S[k](xzS)=j=02kcjxjf(x) = \prod_{\emptyset \subseteq S \subseteq [k]} (x - z_S) = \sum_{j=0}^{2^k} c_j x^j, of degree degf=2k\deg f = 2^k, and with c2k=1c_{2^k} = 1, c0=S[k]zS=1|c_0| = \prod_{\emptyset \subseteq S \subseteq [k]} |z_S| = 1. Then αSzSbf(zS)=0\alpha_S z_S^b f(z_S) = 0 for any integer bb, hence
0=S[k]αSzSbf(zS)=j=02kcjS[k]αSzSb+j=j=02kcjub+j. 0 = \sum_{\emptyset \subseteq S \subseteq [k]} \alpha_S z_S^b f(z_S) = \sum_{j=0}^{2^k} c_j \sum_{\emptyset \subseteq S \subseteq [k]} \alpha_S z_S^{b+j} = \sum_{j=0}^{2^k} c_j u_{b+j}.
Assume the 2k2^k consecutive integers a+1,,a+2ka+1, \dots, a+2^k are covered, so, according with the above, ua+1==ua+2k=0u_{a+1} = \dots = u_{a+2^k} = 0. Since c00c_0 \neq 0 and c2k0c_{2^k} \neq 0, by simple induction one gets ub=0u_b = 0 for any integer bb (a linear recurrence relation of order 2k2^k containing 2k2^k consecutive null terms generates an all-null sequence). \square

Now, in our case, if we assume m(P)2Pm(P) \ge 2^{|P|}, then the P|P| arithmetic sequences given by {mp}mZ\{mp\}_{m \in \mathbb{Z}}, pPp \in P, will cover 2k2^k consecutive integers, hence they will cover Z\mathbb{Z}. But clearly a large enough prime qq is not divisible by any pPp \in P, so this is absurd, therefore m(P)<2Pm(P) < 2^{|P|}.

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 and solution reproduced as published; topic and difficulty added by this site.