Maths Olympiad Prep

Library / /5 of 5

Number theory Difficulty 8.1 Shortlist Prove it European Girls' Mathematical Olympiad (EGMO)

Problem:

Let n2n \geq 2 be an integer. An nn-tuple (a1,a2,,an)(a_{1}, a_{2}, \ldots, a_{n}) of positive integers is expensive if there exists a positive integer kk such that
(a1+a2)(a2+a3)(an1+an)(an+a1)=22k1. (a_{1}+a_{2})(a_{2}+a_{3}) \cdots (a_{n-1}+a_{n})(a_{n}+a_{1})=2^{2k-1}.
a) Find all positive integers n2n \geq 2 for which there exists an expensive nn-tuple.
b) Prove that for every positive integer mm there exists an integer n2n \geq 2 such that mm belongs to an expensive nn-tuple.

There are exactly nn factors in the product on the left hand side.

Solutions — 2

Solution 1

Solution:

a) Notice that for odd integers n>2n>2, the tuple (1,1,,1)(1,1, \ldots, 1) is expensive. We will prove that there are no expensive nn-tuples for even nn.

Lemma 0.1. If an expensive nn-tuple exists for some n4n \geq 4, then also an expensive n2n-2-tuple.

Proof. In what follows all indices are considered modulo nn. Let (a1,a2,,an)(a_{1}, a_{2}, \ldots, a_{n}) be an expensive nn-tuple and ata_{t} the largest element of the tuple. We have the inequalities
at1+at2at<2(at+at+1)at+at+12at<2(at1+at). \begin{aligned} a_{t-1}+a_{t} & \leq 2 a_{t}<2(a_{t}+a_{t+1}) \\ a_{t}+a_{t+1} & \leq 2 a_{t}<2(a_{t-1}+a_{t}) . \end{aligned}
Since both at1+ata_{t-1}+a_{t} and at+at+1a_{t}+a_{t+1} are powers of 2 (they are divisors of a power of 2), we deduce from (1) and (2)
at1+at=at+at+1=2r a_{t-1}+a_{t}=a_{t}+a_{t+1}=2^{r}
for some positive integer rr, and in particular at1=at+1a_{t-1}=a_{t+1}.

Consider now the n2n-2-tuple (b1,,bn2)(b_{1}, \ldots, b_{n-2}) obtained by removing ata_{t} and at+1a_{t+1} from (a1,a2,,an)(a_{1}, a_{2}, \ldots, a_{n}). By what we just said we have
i=1n2(bi+bi+1)=i=1n(ai+ai+1)(at1+at)(at+at+1)=22(kr)1 \prod_{i=1}^{n-2}(b_{i}+b_{i+1})=\frac{\prod_{i=1}^{n}(a_{i}+a_{i+1})}{(a_{t-1}+a_{t})(a_{t}+a_{t+1})}=2^{2(k-r)-1}
and hence (b1,,bn2)(b_{1}, \ldots, b_{n-2}) is again expensive.

From the lemma we now conclude that if there exists an expensive nn-tuple for some even nn, then also an expensive 2-tuple, i.e.
(a1+a2)2=22k1 (a_{1}+a_{2})^{2}=2^{2k-1}
for some positive integers a1,a2a_{1}, a_{2}, which is impossible since the right hand side is not a square.

b) We prove this by induction. In a) we saw that 1 belongs to an expensive nn-tuple. Assume now that all odd positive integers less than 2k2^{k} belong to an expensive nn-tuple, for some k1k \geq 1. Hence for any odd r<2kr<2^{k} there is an integer nn and an expensive nn-tuple (a1,,r,,an)(a_{1}, \ldots, r, \ldots, a_{n}). We notice that then also (a1,,r,2k+1r,r,,an)(a_{1}, \ldots, r, 2^{k+1}-r, r, \ldots, a_{n}) is expensive. Since 2k+1r2^{k+1}-r can take all odd values between 2k2^{k} and 2k+12^{k+1} the induction step is complete.

Solution 2

Solution:

a) For odd nn the tuple (1,1,,1)(1,1, \ldots, 1) is a solution.

Now consider nn even. Since the product (ai+ai+1)\prod(a_{i}+a_{i+1}) is a power of two, every factor needs to be a power of two. We are going to prove that for all tuples (a1,,an)(a_{1}, \ldots, a_{n}) such that ai+ai+1a_{i}+a_{i+1} is always a power of two, it is the case that (ai+ai+1)\prod(a_{i}+a_{i+1}) is equal to an even power of two. We are going to prove this with strong induction on ai\sum a_{i}.

When all aia_{i} are equal to one this is certainly the case. Since ai+ai+1>1a_{i}+a_{i+1}>1 it is even and we conclude that the aia_{i} are either all odd or all even. In the case they are all even, then consider the tuple (b1,,bn)(b_{1}, \ldots, b_{n}) with bi=ai/2b_{i}=a_{i} / 2. This tuple clearly satisfies the hypothesis as well and we have bi<ai\sum b_{i}<\sum a_{i}. Furthermore we have (ai+ai+1)=2n(bi+bi+1)\prod(a_{i}+a_{i+1})=2^{n} \prod(b_{i}+b_{i+1}) and since nn is even we are done in this case.

Now all aia_{i} are odd. Suppose none of them are one, then consider the tuple (b1,,bn)(b_{1}, \ldots, b_{n}) with bi=(ai+(1)i)/2b_{i}=(a_{i}+(-1)^{i}) / 2. Since all aia_{i} are odd and strictly larger than one, the bib_{i} are positive integers and satisfy bi+bi+1=(ai+ai+1)/2b_{i}+b_{i+1}=(a_{i}+a_{i+1}) / 2, a power of two. Since bi<ai\sum b_{i}<\sum a_{i} and (ai+ai+1)=2n(bi+bi+1)\prod(a_{i}+a_{i+1})=2^{n} \prod(b_{i}+b_{i+1}) we are done in this case again.

Now there is at least one aia_{i} being one. We may assume i=1i=1, because the condition is cyclic. Moreover we may also assume that a2>1a_{2}>1 since not all of the aia_{i} are equal to one. Let now kk be the smallest index larger than one such that aka_{k} is equal to one. We are not excluding the case k=n+1k=n+1, yet. Now for i=1,,k1i=1, \ldots, k-1 we have ai+ai+1>2a_{i}+a_{i+1}>2 and thus divisible by four. By induction it easily follows that ai(1)i+1mod4a_{i} \equiv(-1)^{i+1} \bmod 4 for i=1,,k1i=1, \ldots, k-1. In particular, since ak=1a_{k}=1 we find that kk is odd and at least three.

Now consider the tuple (b1,,bn)(b_{1}, \ldots, b_{n}) with bi=(ai(1)i)/2b_{i}=(a_{i}-(-1)^{i}) / 2 for i=1,,ki=1, \ldots, k and bi=aib_{i}=a_{i} otherwise. This is again a tuple that satisfies the hypothesis, since b1=a1=1=bk=akb_{1}=a_{1}=1=b_{k}=a_{k}. Moreover b2<a2b_{2}<a_{2} and thus bi<ai\sum b_{i}<\sum a_{i}. Finally we have (ai+ai+1)=2k1(bi+bi+1)\prod(a_{i}+a_{i+1})=2^{k-1} \prod(b_{i}+b_{i+1}) and since kk is odd we conclude the proof.

b) We use some of the ideas from a). Consider the operators T±(n)=2n±1T_{\pm}(n)=2n\pm 1. We claim that for every odd integer mm there is an integer rr and signs ϵi{+,}\epsilon_{i} \in\{+,-\} for i=1,,ri=1, \ldots, r such that TϵrTϵ1(1)=mT_{\epsilon_{r}} \circ \ldots \circ T_{\epsilon_{1}}(1)=m. This is certainly true for m=1m=1 and for m>1m>1 we find that m=T((m+1)/2)m=T_{-}((m+1)/2) if m1mod4m \equiv 1 \bmod 4 and m=T+((m1)/2)m=T_{+}((m-1)/2) if m3mod4m \equiv 3 \bmod 4. Note that both (m+1)/2(m+1)/2 and (m1)/2(m-1)/2 are odd integers in their respective cases and (m1)/2(m+1)/2<m(m-1)/2 \leq (m+1)/2 < m for m>1m>1. Therefore iterating the procedure will eventually terminate in one.

For the construction it is most convenient to set n=2l+1n=2l+1 and label the tuple (al,al+1,,al)(a_{-l}, a_{-l+1}, \ldots, a_{l}). For m=1m=1 we have the expensive tuple (1,1,1)(1,1,1). For m>1m>1 we will define operators T±T_{\pm} on expensive tuples with the condition al=al=1a_{-l}=a_{l}=1 that give rise to a new expensive tuple (bl,,bl)(b_{-l'}, \ldots, b_{l'}) with bl=bl=1b_{-l'}=b_{l'}=1 and b0=T±a0b_{0}=T_{\pm} a_{0}. It is then clear that TϵrTϵ1((1,1,1))T_{\epsilon_{r}} \circ \cdots \circ T_{\epsilon_{1}}((1,1,1)) is an expensive tuple containing mm.

We define T±T_{\pm} as follows: set l=l+1l'=l+1 and bl=bl=1b_{-l'}=b_{l'}=1 and bi=T±(1)i(ai)b_{i}=T_{\pm(-1)^{i}}(a_{i}) for i=l,,li=-l, \ldots, l. Here we identify ++ with +1+1 and - with 1-1. We are left to prove that the new tuple is indeed expensive. If ±(1)l=1\pm(-1)^{l}=-1, then (bi+bi+1)=422l(ai+ai+1)\prod(b_{i}+b_{i+1})=4 \cdot 2^{2l} \prod(a_{i}+a_{i+1}), and if ±(1)l=+1\pm(-1)^{l}=+1, then (bi+bi+1)=422l+2(ai+ai+1)\prod(b_{i}+b_{i+1})=4 \cdot 2^{2l+2} \prod(a_{i}+a_{i+1}). In both cases we end up with an expensive tuple again.

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.