Maths Olympiad Prep

Library / /12 of 25

, 2020

Algebra Difficulty 7.8 National Olympiad, round 2 Prove it European Girls' Mathematical Olympiad (EGMO)

Problem:
Let m>1m > 1 be an integer. A sequence a1,a2,a3,a_{1}, a_{2}, a_{3}, \ldots is defined by a1=a2=1a_{1} = a_{2} = 1, a3=4a_{3} = 4, and for all n4n \geq 4,
an=m(an1+an2)an3. a_{n} = m\left(a_{n-1} + a_{n-2}\right) - a_{n-3}.
Determine all integers mm such that every term of the sequence is a square.

Solutions — 2

Solution 1

Solution:
The only such mm are m=2m = 2 and m=10m = 10.

Consider an integer m>1m > 1 for which the sequence defined in the problem statement contains only perfect squares. We shall first show that m1m - 1 is a power of 33.

Suppose that m1m - 1 is even. Then a4=5m1a_{4} = 5m - 1 should be divisible by 44 and hence m1(mod4)m \equiv 1 \pmod{4}. But then a5=5m2+3m13(mod4)a_{5} = 5m^{2} + 3m - 1 \equiv 3 \pmod{4} cannot be a square, a contradiction. Therefore m1m - 1 is odd.

Suppose that an odd prime p3p \neq 3 divides m1m - 1. Note that anan1an2an3(modp)a_{n} - a_{n-1} \equiv a_{n-2} - a_{n-3} \pmod{p}. It follows that modulo pp the sequence takes the form 1,1,4,4,7,7,10,10,1, 1, 4, 4, 7, 7, 10, 10, \ldots; indeed, a simple induction shows that a2ka2k13k2(modp)a_{2k} \equiv a_{2k-1} \equiv 3k - 2 \pmod{p} for k1k \geq 1. Since gcd(p,3)=1\gcd(p, 3) = 1 we get that the sequence an(modp)a_{n} \pmod{p} contains all the residues modulo pp, a contradiction since only (p+1)/2(p + 1)/2 residues modulo pp are squares. This shows that m1m - 1 is a power of 33.

Let h,kh, k be integers such that m=3k+1m = 3^{k} + 1 and a4=h2a_{4} = h^{2}. We then have 53k=(h2)(h+2)5 \cdot 3^{k} = (h - 2)(h + 2). Since gcd(h2,h+2)=1\gcd(h - 2, h + 2) = 1, it follows that h2h - 2 equals either 1,3k1, 3^{k} or 55, and h+2h + 2 equals either 53k,55 \cdot 3^{k}, 5 or 3k3^{k}, respectively. In the first two cases we get k=0k = 0 and in the last case we get k=2k = 2. This implies that either m=2m = 2 or m=10m = 10.

We now show the converse. Suppose that m=2m = 2 or m=10m = 10. Let t=1t = 1 or t=3t = 3 so that m=t2+1m = t^{2} + 1. Let b1,b2,b3,b_{1}, b_{2}, b_{3}, \ldots be a sequence of integers defined by b1=1,b2=1,b3=2b_{1} = 1, b_{2} = 1, b_{3} = 2, and
bn=tbn1+bn2,for all n4 b_{n} = t b_{n-1} + b_{n-2}, \quad \text{for all } n \geq 4
Clearly, an=bn2a_{n} = b_{n}^{2} for n=1,2,3n = 1, 2, 3. Note that if m=2m = 2 then a4=9a_{4} = 9 and b4=3b_{4} = 3, and if m=10m = 10 then a4=49a_{4} = 49 and b4=7b_{4} = 7. In both the cases we have a4=b42a_{4} = b_{4}^{2}.

If n5n \geq 5 then we have
bn2+bn32=(tbn1+bn2)2+(bn1tbn2)2=(t2+1)(bn12+bn22)=m(bn12+bn22). b_{n}^{2} + b_{n-3}^{2} = \left(t b_{n-1} + b_{n-2}\right)^{2} + \left(b_{n-1} - t b_{n-2}\right)^{2} = \left(t^{2} + 1\right)\left(b_{n-1}^{2} + b_{n-2}^{2}\right) = m\left(b_{n-1}^{2} + b_{n-2}^{2}\right).
Therefore, it follows by induction that an=bn2a_{n} = b_{n}^{2} for all n1n \geq 1. This completes the solution.

Solution 2

Solution:
We present an alternate proof that m=2m = 2 and m=10m = 10 are the only possible values of mm with the required property.

Note that
a4=5m1a5=5m2+3m1a6=5m3+8m22m4 \begin{aligned} & a_{4} = 5m - 1 \\ & a_{5} = 5m^{2} + 3m - 1 \\ & a_{6} = 5m^{3} + 8m^{2} - 2m - 4 \end{aligned}
Since a4a_{4} and a6a_{6} are squares, so is a4a6a_{4} a_{6}. We have
4a4a6=100m4+140m372m272m+16 4 a_{4} a_{6} = 100 m^{4} + 140 m^{3} - 72 m^{2} - 72 m + 16
Notice that
(10m2+7m7)2=100m4+140m391m298m+49<4a4a6(10m2+7m5)2=100m4+140m351m270m+25>4a4a6 \begin{aligned} & \left(10 m^{2} + 7m - 7\right)^{2} = 100 m^{4} + 140 m^{3} - 91 m^{2} - 98 m + 49 < 4 a_{4} a_{6} \\ & \left(10 m^{2} + 7m - 5\right)^{2} = 100 m^{4} + 140 m^{3} - 51 m^{2} - 70 m + 25 > 4 a_{4} a_{6} \end{aligned}
so we must have
4a4a6=(10m2+7m6)2=100m4+140m371m284m+36 4 a_{4} a_{6} = \left(10 m^{2} + 7m - 6\right)^{2} = 100 m^{4} + 140 m^{3} - 71 m^{2} - 84 m + 36
This implies that m212m+20=0m^{2} - 12m + 20 = 0, so m=2m = 2 or m=10m = 10.

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.