Maths Olympiad Prep

Library / /21 of 31

Number theory Difficulty 6.8 National Olympiad Prove it Italy

Problem:

For every positive integer nn, let DnD_{n} be the greatest common divisor of all the numbers of the form an+(a+1)n+(a+2)na^{n} + (a+1)^{n} + (a+2)^{n} as aa varies among all positive integers.

a. Prove that, for every nn, DnD_{n} is of the form 3k3^{k} for some integer k0k \geq 0.

b. Prove that, for every k0k \geq 0, there exists an integer nn such that Dn=3kD_{n} = 3^{k}.

Solution

Solution:

By definition of DnD_{n}, taking a=Dna = D_{n} we see that DnD_{n} divides Dnn+(Dn+1)n+(Dn+2)nD_{n}^{n} + (D_{n} + 1)^{n} + (D_{n} + 2)^{n}, and taking a=Dn+1a = D_{n} + 1 we also get that DnD_{n} divides (Dn+1)n+(Dn+2)n+(Dn+3)n(D_{n} + 1)^{n} + (D_{n} + 2)^{n} + (D_{n} + 3)^{n}. By subtraction DnD_{n} divides ((Dn+1)n+(Dn+2)n+(Dn+3)n)(Dnn+(Dn+1)n+(Dn+2)n)=(Dn+3)nDnn((D_{n} + 1)^{n} + (D_{n} + 2)^{n} + (D_{n} + 3)^{n}) - (D_{n}^{n} + (D_{n} + 1)^{n} + (D_{n} + 2)^{n}) = (D_{n} + 3)^{n} - D_{n}^{n}, and since clearly DnD_{n} divides DnnD_{n}^{n}, again by subtraction we deduce that DnD_{n} divides (Dn+3)n(D_{n} + 3)^{n}. Let us now expand (Dn+3)n(D_{n} + 3)^{n}: it is a sum of terms of the form Dnb3nbD_{n}^{b} 3^{n-b}, where bb ranges between 00 and nn, and therefore each of them is divisible by DnD_{n}, with the sole exception of the single term with b=0b = 0. We can therefore write (Dn+3)n=3n+(D_{n} + 3)^{n} = 3^{n} + multiples of DnD_{n}, from which we deduce that DnD_{n} divides 3n3^{n}: it follows that DnD_{n} itself is a power of 33, as desired.

Let us first observe that D2=1D_{2} = 1: indeed D2D_{2} is a power of 33 (by part a) and by definition divides 12+22+32=141^{2} + 2^{2} + 3^{2} = 14, which forces D2=1D_{2} = 1.

We then have D1=3D_{1} = 3: taking a=1a = 1 we obtain that D1D_{1} divides 66, hence (since it is a power of 33) D1D_{1} is 11 or 33. But on the other hand for every aa the number a+(a+1)+(a+2)=3(a+1)a + (a+1) + (a+2) = 3(a+1) is a multiple of 33, so D1=3D_{1} = 3.

We now want to show that for every k0k \geq 0 we have D3k=3k+1D_{3^{k}} = 3^{k+1}. For k=0k = 0 we have just verified it. Since D3kD_{3^{k}} is a power of 33, it suffices to see that D3kD_{3^{k}} is divisible by 3k+13^{k+1} but not by 3k+23^{k+2}. Since one passes from an+(a+1)n+(a+2)na^{n} + (a+1)^{n} + (a+2)^{n} to (a+1)n+(a+2)n+(a+3)n(a+1)^{n} + (a+2)^{n} + (a+3)^{n} by adding (a+3)nan(a+3)^{n} - a^{n}, to prove that 3k+13^{k+1} divides D3kD_{3^{k}} it suffices to check that 3k+13^{k+1} divides 13k+23k+33k1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}} and each of the differences (a+3)3ka3k(a+3)^{3^{k}} - a^{3^{k}}. To prove that D3kD_{3^{k}} is not divisible by 3k+23^{k+2} it suffices to prove that 13k+23k+33k1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}} is not divisible by 3k+23^{k+2}.

Let us first deal with the statement about the differences, by induction on kk: for k=0k = 0 it is obvious. Suppose then that, for some kk, (a+3)3ka3k(a+3)^{3^{k}} - a^{3^{k}} is a multiple of 3k+13^{k+1}. We can write (a+3)3k=a3k+c3k+1(a+3)^{3^{k}} = a^{3^{k}} + c \cdot 3^{k+1}, and raising to the cube we find (a+3)3k+1=a3k+1+3a23kc3k+1+3a3kc232(k+1)+c333(k+1)(a+3)^{3^{k+1}} = a^{3^{k+1}} + 3 a^{2 \cdot 3^{k}} \cdot c \cdot 3^{k+1} + 3 a^{3^{k}} \cdot c^{2} \cdot 3^{2(k+1)} + c^{3} \cdot 3^{3(k+1)}, that is (a+3)3k+1a3k+1=a23kc3k+2+a3kc232k+3+c333k+3(a+3)^{3^{k+1}} - a^{3^{k+1}} = a^{2 \cdot 3^{k}} \cdot c \cdot 3^{k+2} + a^{3^{k}} \cdot c^{2} \cdot 3^{2k+3} + c^{3} \cdot 3^{3k+3}, which is clearly divisible by 3k+23^{k+2}, as desired.

As for 13k+23k+33k1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}}, we prove at the same time that it is divisible by 3k+13^{k+1} but not by 3k+23^{k+2}. The statement is trivial for k=0k = 0, since 1+2+31 + 2 + 3 is divisible by 33 but not by 99. For k1k \geq 1 we observe that 33k3^{3^{k}} is divisible by 3k+23^{k+2}, so it suffices to prove the statement for 13k+23k1^{3^{k}} + 2^{3^{k}} instead of for 13k+23k+33k1^{3^{k}} + 2^{3^{k}} + 3^{3^{k}}. Again, we use induction on kk. For k=1k = 1 we have that 1+231 + 2^{3} is divisible by 323^{2} but not by 333^{3}. Suppose now that 1+23k1 + 2^{3^{k}} is divisible by 3k+13^{k+1} but not by 3k+23^{k+2}: this means that 1+23k=3k+1c1 + 2^{3^{k}} = 3^{k+1} \cdot c, where cc is not a multiple of 33. We then have 1+23k+1=1+(23k)3=1+(3k+1c1)3=3k+2(c3k+1c2+32k+2c3)1 + 2^{3^{k+1}} = 1 + (2^{3^{k}})^{3} = 1 + (3^{k+1} c - 1)^{3} = 3^{k+2}(c - 3^{k+1} c^{2} + 3^{2k+2} c^{3}). The right-hand side is a multiple of 3k+23^{k+2} but not of 3k+33^{k+3}: indeed (c3k+1c2+32k+2c3)(c - 3^{k+1} c^{2} + 3^{2k+2} c^{3}) is not divisible by 33, since it is the sum of multiples of 33 and of cc, which by hypothesis is not divisible by 33. This concludes the proof.

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 translated into English from it; metadata (topic, difficulty) added by this project.