Olympiad Maths Prep

Track / Stage 7 / 145 of 300 #1545 of 2000

Problem 1545

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.3 Prove it

Define the sequence a1,a2,a_1, a_2, \ldots and b1,b2,b_1, b_2, \ldots as a0=1,a1=4,a2=49a_0=1,a_1=4,a_2=49 and for n0n \geq 0
{an+1=7an+6bn3,bn+1=8an+7bn4. \begin{cases} a_{n+1}=7a_n+6b_n-3, \\ b_{n+1}=8a_n+7b_n-4. \end{cases}
Prove that for any non-negative integer n,n, ana_n is a perfect square.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Define the sequences and initial conditions:
We are given the sequences ana_n and bnb_n with initial conditions:
a0=1,a1=4,a2=49 a_0 = 1, \quad a_1 = 4, \quad a_2 = 49
and the recurrence relations:
{an+1=7an+6bn3,bn+1=8an+7bn4. \begin{cases} a_{n+1} = 7a_n + 6b_n - 3, \\ b_{n+1} = 8a_n + 7b_n - 4. \end{cases}

2. **Express an+1a_{n+1} in terms of previous terms:**
We start by expressing an+1a_{n+1} in terms of ana_n and bnb_n:
an+1=7an+6bn3 a_{n+1} = 7a_n + 6b_n - 3
We also have:
7an=49an1+42bn121 7a_n = 49a_{n-1} + 42b_{n-1} - 21
Subtracting the second equation from the first:
an+17an=(7an+6bn3)(49an1+42bn121) a_{n+1} - 7a_n = (7a_n + 6b_n - 3) - (49a_{n-1} + 42b_{n-1} - 21)
Simplifying, we get:
an+17an=6bn349an142bn1+21 a_{n+1} - 7a_n = 6b_n - 3 - 49a_{n-1} - 42b_{n-1} + 21

3. **Use the recurrence relation for bnb_n:**
We know:
bn7bn1=8an14 b_n - 7b_{n-1} = 8a_{n-1} - 4
Substituting this into the previous equation:
an+17an=6(7bn1+8an14)349an142bn1+21 a_{n+1} - 7a_n = 6(7b_{n-1} + 8a_{n-1} - 4) - 3 - 49a_{n-1} - 42b_{n-1} + 21
Simplifying further:
an+17an=42bn1+48an124349an142bn1+21 a_{n+1} - 7a_n = 42b_{n-1} + 48a_{n-1} - 24 - 3 - 49a_{n-1} - 42b_{n-1} + 21
an+17an=an16 a_{n+1} - 7a_n = -a_{n-1} - 6
Rearranging, we get:
an+1=14anan16 a_{n+1} = 14a_n - a_{n-1} - 6

4. Form the characteristic equation:
The recurrence relation is:
an+115an+15an1an2=0 a_{n+1} - 15a_n + 15a_{n-1} - a_{n-2} = 0
The characteristic equation is:
x315x2+15x1=0 x^3 - 15x^2 + 15x - 1 = 0

5. Solve the characteristic equation:
One root is obviously x=1x = 1. The other roots can be found by factoring or using the quadratic formula:
(x1)(x214x+1)=0 (x - 1)(x^2 - 14x + 1) = 0
Solving the quadratic equation:
x=14±19642=7±43 x = \frac{14 \pm \sqrt{196 - 4}}{2} = 7 \pm 4\sqrt{3}
So the roots are 1,7+43,7431, 7 + 4\sqrt{3}, 7 - 4\sqrt{3}.

6. Form the general solution:
The general solution to the recurrence relation is:
an=A1n+B(7+43)n+C(743)n a_n = A \cdot 1^n + B \cdot (7 + 4\sqrt{3})^n + C \cdot (7 - 4\sqrt{3})^n
Using the initial conditions a0=1a_0 = 1, a1=4a_1 = 4, and a2=49a_2 = 49, we solve for AA, BB, and CC:
an=12+(7+43)n4+(743)n4 a_n = \frac{1}{2} + \frac{(7 + 4\sqrt{3})^n}{4} + \frac{(7 - 4\sqrt{3})^n}{4}
Simplifying, we get:
an=((2+3)n+(23)n)214 a_n = \left( (2 + \sqrt{3})^n + (2 - \sqrt{3})^n \right)^2 \cdot \frac{1}{4}

7. **Prove ana_n is a perfect square:**
Notice that:
an=((2+3)n+(23)n)2 a_n = \left( (2 + \sqrt{3})^n + (2 - \sqrt{3})^n \right)^2
Since (2+3)n+(23)n(2 + \sqrt{3})^n + (2 - \sqrt{3})^n is an integer for all nn, ana_n is a perfect square.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.