Maths Olympiad Prep

Track / Stage 6 / 99 of 400 #1099 of 1964

Problem 1099

National Olympiad, first round
Algebra Difficulty 6.1 Prove it Serbian Mathematical Olympiad · Serbia

Let the sequence (an)n1\left(a_{n}\right)_{n \geqslant 1} be defined by a1=3,a2=11a_{1}=3, a_{2}=11 and an=4an1an2a_{n}=4 a_{n-1}-a_{n-2}, for n3n \geqslant 3. Prove that every term of this sequence is of the form a2+2b2a^{2}+2 b^{2} for some natural numbers aa and bb.

(Đorđe Baralić)

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Solution:

We have a1=1+212,a2=32+212,a3=32+242,a4=112+242a_{1}=1+2 \cdot 1^{2}, a_{2}=3^{2}+2 \cdot 1^{2}, a_{3}=3^{2}+2 \cdot 4^{2}, a_{4}=11^{2}+2 \cdot 4^{2}, etc. We will prove by induction on nn that
a2n1=an12+2(anan12)2 and a2n=an2+2(anan12)2, a_{2 n-1}=a_{n-1}^{2}+2\left(\frac{a_{n}-a_{n-1}}{2}\right)^{2} \quad \text { and } \quad a_{2 n}=a_{n}^{2}+2\left(\frac{a_{n}-a_{n-1}}{2}\right)^{2},
where a0=1a_{0}=1. Assume that the claim holds for nn. Then
a2n+1=4a2na2n1=4an2+8(anan12)2an122(anan12)2=112an23anan1+12an12=112an23an(4anan+1)+12(4anan+1)2=32an2anan+1+12an+12=an2+2(an+1an2)2a2n+2=4a2n+1a2n=4an2+8(an+1an2)2an22(anan12)2=3an2+8(an+1an2)22(an+13an2)2=32an+12anan+1+12an2=an+12+2(an+1an2)2, \begin{aligned} a_{2 n+1} & =4 a_{2 n}-a_{2 n-1}=4 a_{n}^{2}+8\left(\frac{a_{n}-a_{n-1}}{2}\right)^{2}-a_{n-1}^{2}-2\left(\frac{a_{n}-a_{n-1}}{2}\right)^{2} \\ & =\frac{11}{2} a_{n}^{2}-3 a_{n} a_{n-1}+\frac{1}{2} a_{n-1}^{2}=\frac{11}{2} a_{n}^{2}-3 a_{n}\left(4 a_{n}-a_{n+1}\right)+\frac{1}{2}\left(4 a_{n}-a_{n+1}\right)^{2} \\ & =\frac{3}{2} a_{n}^{2}-a_{n} a_{n+1}+\frac{1}{2} a_{n+1}^{2}=a_{n}^{2}+2\left(\frac{a_{n+1}-a_{n}}{2}\right)^{2} \\ a_{2 n+2} & =4 a_{2 n+1}-a_{2 n}=4 a_{n}^{2}+8\left(\frac{a_{n+1}-a_{n}}{2}\right)^{2}-a_{n}^{2}-2\left(\frac{a_{n}-a_{n-1}}{2}\right)^{2} \\ & =3 a_{n}^{2}+8\left(\frac{a_{n+1}-a_{n}}{2}\right)^{2}-2\left(\frac{a_{n+1}-3 a_{n}}{2}\right)^{2}=\frac{3}{2} a_{n+1}^{2}-a_{n} a_{n+1}+\frac{1}{2} a_{n}^{2} \\ & =a_{n+1}^{2}+2\left(\frac{a_{n+1}-a_{n}}{2}\right)^{2}, \end{aligned}
which completes the proof.

Second solution. It is known that an odd natural number m>1m>1 can be represented in the form a2+2b2a^{2}+2 b^{2} for some coprime a,bNa, b \in \mathbb{N} if and only if all prime divisors of mm are of the form 8k+18 k+1 or 8k+3,kN08 k+3, k \in \mathbb{N}_{0}. It is easy to see that all terms of the sequence (an)( a_{n}) are odd; it remains to show that if a prime number pp divides ana_{n}, then p=8k+1p=8 k+1 or p=8k+3p=8 k+3 for some kN0k \in \mathbb{N}_{0}.

One shows by induction on nn that anan+2=an+12+2a_{n} a_{n+2}=a_{n+1}^{2}+2. Indeed, this holds for n2n \leq 2, and for n>2n>2, assuming it holds for n2n-2, we have
an+12+2an=(4anan1)2+2an=16an8an1+an12+2an=16an8an1+an2=4an+1an=an+2 \begin{aligned} \frac{a_{n+1}^{2}+2}{a_{n}} & =\frac{\left(4 a_{n}-a_{n-1}\right)^{2}+2}{a_{n}}=16 a_{n}-8 a_{n-1}+\frac{a_{n-1}^{2}+2}{a_{n}} \\ & =16 a_{n}-8 a_{n-1}+a_{n-2}=4 a_{n+1}-a_{n}=a_{n+2} \end{aligned}
From this it follows that 2-2 is a quadratic residue modulo every prime divisor pp of the number ana_{n}, so p1p \equiv 1 or p3(mod8)p \equiv 3(\bmod 8).

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from sr; metadata (topic, difficulty, ordering) added by this project.