Maths Olympiad Prep

Library / Team selection tests for GMO /8 of 8

Team selection tests for GMO, 2018

Number theory Difficulty 8.9 Shortlist Prove it Saudi Arabia

Let nn be an odd positive integer with n>1n>1 and let a1,a2,…,ana_{1}, a_{2}, \ldots, a_{n} be positive integers such that gcd⁡(a1,a2,…,an)=1\operatorname{gcd}\left(a_{1}, a_{2}, \ldots, a_{n}\right)=1. Let d=gcd⁡(a1n+a1a2⋯an,a2n+a1⋅a2⋯an,…,ann+a1⋅a2⋯an)d=\operatorname{gcd}\left(a_{1}^{n}+a_{1} a_{2} \cdots a_{n}, a_{2}^{n}+a_{1} \cdot a_{2} \cdots a_{n}, \ldots, a_{n}^{n}+a_{1} \cdot a_{2} \cdots a_{n}\right). Show that the possible values of dd are d=1,d=2d=1, d=2.

Solution

Let pp be a prime with p∣dp \mid d. We know that p∣ain+a1⋅a2⋯anp \mid a_{i}^{n}+a_{1} \cdot a_{2} \cdots a_{n} for all ii. If ∃i\exists i such that p∣aip \mid a_{i}, then p∣a1⋅a2⋯anp \mid a_{1} \cdot a_{2} \cdots a_{n}. Since p∣ajn+a1⋅a2⋯anp \mid a_{j}^{n}+a_{1} \cdot a_{2} \cdots a_{n} for all jj, we find p∣ajp \mid a_{j} for all jj, which contradicts to the hypothesis.

Thus we consider the case p∤aip \nmid a_{i} for all ii, i.e. p∤a1⋅a2⋯anp \nmid a_{1} \cdot a_{2} \cdots a_{n}. We have the nn congruences
a1n≡−a1⋅a2⋯an(modp),a2n≡−a1⋅a2⋯an(modp),…,ann≡−a1⋅a2⋯an(modp) \begin{aligned} & a_{1}^{n} \equiv -a_{1} \cdot a_{2} \cdots a_{n} \pmod{p}, \\ & a_{2}^{n} \equiv -a_{1} \cdot a_{2} \cdots a_{n} \pmod{p}, \ldots, \\ & a_{n}^{n} \equiv -a_{1} \cdot a_{2} \cdots a_{n} \pmod{p} \end{aligned}
and by multiplying them, we obtain
(a1⋅a2⋯an)n≡(−1)n⋅(a1⋅a2⋯an)n≡−(a1⋅a2⋯an)n(modp) \left(a_{1} \cdot a_{2} \cdots a_{n}\right)^{n} \equiv (-1)^{n} \cdot \left(a_{1} \cdot a_{2} \cdots a_{n}\right)^{n} \equiv -\left(a_{1} \cdot a_{2} \cdots a_{n}\right)^{n} \pmod{p}
which yields p=2p=2.

This shows that dd must be a power of 22. Suppose, now, that 4∣d4 \mid d. Clearly, a1,a2,…,ana_{1}, a_{2}, \ldots, a_{n} must be all odd. We consider two cases

1. If a1⋅a2⋯an≡3(mod4)a_{1} \cdot a_{2} \cdots a_{n} \equiv 3 \pmod{4}, then ∃i\exists i such that ai≡3(mod4)a_{i} \equiv 3 \pmod{4} then ain+a1⋅a2⋯an≡3+3≡2(mod4)a_{i}^{n}+a_{1} \cdot a_{2} \cdots a_{n} \equiv 3+3 \equiv 2 \pmod{4} which contradicts with 4∣d4 \mid d.

2. If a1⋅a2⋯an≡1(mod4)a_{1} \cdot a_{2} \cdots a_{n} \equiv 1 \pmod{4}, then ∃i\exists i such that ai≡1(mod4)a_{i} \equiv 1 \pmod{4} then ain+a1⋅a2⋯an≡1+1≡2(mod4)a_{i}^{n}+a_{1} \cdot a_{2} \cdots a_{n} \equiv 1+1 \equiv 2 \pmod{4} which also contradicts with 4∣d4 \mid d. (In both cases, we made use of 3n≡3(mod4)3^{n} \equiv 3 \pmod{4}.)

Therefore, d=1d=1 or d=2d=2. If a1,a2,…,ana_{1}, a_{2}, \ldots, a_{n} are all odd, then dd must be even, hence d=2d=2. If some of a1,a2,…,ana_{1}, a_{2}, \ldots, a_{n} are even and some of them odd, then dd must be odd, hence d=1d=1. As such, both of these values are realized.

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.