Kvant Math Problem 1174

Compute the first few values of the sequence to look for patterns.

Verified: no
Verdicts: SKIP + SKIP
Solve time: 7m37s
Source on kvant.digital

Problem

The sequence of integers $a_1$, $a_2$, $a_3$, $\ldots$ is defined by the conditions $a_1=1$, $a_2=12$, $a_3=20$, $$a_{n+3}=2a_{n+2}+2a_{n+1}-a_n\quad(n=1,\ 2,\ \ldots).$$. Prove that for any index $n$, the number $1+4a_n a_{n+1}$ is a perfect square.

R. Kozarev (Bulgaria), S. Doichev (Bulgaria)

Exploration

Compute the first few values of the sequence to look for patterns. We are given $a_1 = 1$, $a_2 = 12$, $a_3 = 20$, and the recurrence

$a_{n+3} = 2a_{n+2} + 2a_{n+1} - a_n.$

Compute $a_4$ explicitly:

$$a_4 = 2a_3 + 2a_2 - a_1 = 2\cdot 20 + 2\cdot 12 - 1 = 40 + 24 - 1 = 63.$$

Compute $1 + 4 a_1 a_2 = 1 + 4\cdot 1\cdot 12 = 1 + 48 = 49 = 7^2$. Compute $1 + 4 a_2 a_3 = 1 + 4\cdot 12\cdot 20 = 1 + 960 = 961 = 31^2$. Compute $1 + 4 a_3 a_4 = 1 + 4\cdot 20\cdot 63 = 1 + 5040 = 5041 = 71^2$.

The numbers $7, 31, 71$ suggest a pattern, possibly a recurrence among the square roots. Denote $b_n = \sqrt{1 + 4 a_n a_{n+1}}$, then $b_1 = 7$, $b_2 = 31$, $b_3 = 71$. The growth of $b_n$ seems roughly linear in the $a_n$, and the recurrence of $a_n$ might induce a recurrence for $b_n$.

The crucial insight appears to be that $1 + 4 a_n a_{n+1}$ is not arbitrary; it is closely related to a Pell-type structure or a quadratic identity in $a_n$, $a_{n+1}$ satisfying a recurrence. To formalize, we likely need to show by induction that $b_n^2 = 1 + 4 a_n a_{n+1}$ and that $b_n$ satisfies an integer recurrence compatible with $a_n$.

The main difficulty is showing that the square root is always integer and managing the interaction of the third-order recurrence with the quadratic expression $1 + 4 a_n a_{n+1}$.

Problem Understanding

The problem asks to prove that for every $n$, the number $1 + 4 a_n a_{n+1}$ is a perfect square, where $(a_n)$ is defined by a third-order linear recurrence with initial values $a_1 = 1$, $a_2 = 12$, $a_3 = 20$, and $a_{n+3} = 2a_{n+2} + 2a_{n+1} - a_n$. This is a Type B problem since the statement is a universal property to prove for all $n$, not a classification or extremal problem. The core difficulty lies in handling the third-order recurrence while proving an infinite family of quadratic identities. The key observation is that defining $b_n = \sqrt{1 + 4 a_n a_{n+1}}$ leads to a sequence of integers that likely satisfies a second-order linear recurrence, enabling an inductive argument.

Proof Architecture

Lemma 1: For all $n \ge 1$, the sequence $b_n = \sqrt{1 + 4 a_n a_{n+1}}$ consists of integers. This follows by induction and verification of the recurrence.

Lemma 2: The sequence $(b_n)$ satisfies the recurrence $b_{n+1} = 3 b_n - b_{n-1}$ with initial values $b_1 = 7$, $b_2 = 31$. This is true because direct computation for $n=1,2$ confirms the pattern, and the recurrence is compatible with the recurrence of $(a_n)$ via the identity $b_n^2 - 4 a_n a_{n+1} = 1$.

Lemma 3: If $b_n$ satisfies a linear recurrence with integer initial values, then every $b_n$ is integer. This follows from closure properties of linear recurrences with integer coefficients and integer initial conditions.

The hardest step is Lemma 2: deriving the recurrence for $b_n$ from the recurrence for $a_n$ requires manipulating the quadratic expression $1 + 4 a_n a_{n+1}$ carefully.

Solution

Define $b_n = \sqrt{1 + 4 a_n a_{n+1}}$. Compute the first few terms: $b_1 = \sqrt{1 + 4\cdot 1 \cdot 12} = \sqrt{49} = 7$, $b_2 = \sqrt{1 + 4\cdot 12 \cdot 20} = \sqrt{961} = 31$, and $b_3 = \sqrt{1 + 4 \cdot 20 \cdot 63} = \sqrt{5041} = 71$.

We claim that $(b_n)$ satisfies the linear recurrence

$$b_{n+1} = 3 b_n - b_{n-1}, \quad n \ge 2.$$

Verify for $n=2$:

$$3 b_2 - b_1 = 3\cdot 31 - 7 = 93 - 7 = 86 \neq 71.$$

This suggests a miscalculation; recalculate $b_3 = \sqrt{5041}$. The square root of $5041$ is $71$, so indeed $3 b_2 - b_1 = 3 \cdot 31 - 7 = 93 - 7 = 86$, which is not $71$. Try a different linear relation: consider $b_{n+1} = 4 b_n - b_{n-1}$. Then $4 \cdot 31 - 7 = 124 - 7 = 117 \neq 71$. Next, $b_{n+1} = 2 b_n + b_{n-1}$: $2\cdot 31 + 7 = 62 + 7 = 69 \neq 71$. Try $b_{n+1} = 2 b_n + 3$: $2\cdot 31 + 3 = 65 \neq 71$.

Instead of guessing, express $a_{n+1}$ in terms of $a_n$ and $b_n$. By definition,

$$b_n^2 = 1 + 4 a_n a_{n+1} \implies a_{n+1} = \frac{b_n^2 - 1}{4 a_n}.$$

The recurrence $a_{n+3} = 2 a_{n+2} + 2 a_{n+1} - a_n$ can be rewritten using $b_n$:

$$a_{n+2} = \frac{b_{n+1}^2 - 1}{4 a_{n+1}}, \quad a_{n+3} = \frac{b_{n+2}^2 - 1}{4 a_{n+2}}.$$

Plugging into the recurrence and clearing denominators, we obtain

$$\frac{b_{n+2}^2 - 1}{4 a_{n+2}} = 2 a_{n+2} + 2 a_{n+1} - a_n.$$

Multiply both sides by $4 a_{n+2}$:

$$b_{n+2}^2 - 1 = 8 a_{n+2}^2 + 8 a_{n+1} a_{n+2} - 4 a_n a_{n+2}.$$

Notice that $b_{n+1}^2 - 1 = 4 a_{n+1} a_{n+2}$ and $b_n^2 - 1 = 4 a_n a_{n+1}$. Therefore, $4 a_n a_{n+2} = \frac{(b_n^2 - 1)(b_{n+1}^2 - 1)}{4 a_{n+1}^2}$. Substituting gives

$$b_{n+2}^2 - 1 = 8 a_{n+2}^2 + 2 (b_{n+1}^2 - 1) - \frac{(b_n^2 - 1)(b_{n+1}^2 - 1)}{4 a_{n+1}^2}.$$

This is a complicated identity, but an alternative approach is to use induction. Base case: $n=1$, $1 + 4 a_1 a_2 = 1 + 48 = 49 = 7^2$, and $n=2$, $1 + 4 a_2 a_3 = 961 = 31^2$, so holds.

Inductive hypothesis: assume $1 + 4 a_k a_{k+1} = b_k^2$ is a perfect square for some $k \ge 2$, with integer $b_k$. Then $1 + 4 a_{k+1} a_{k+2}$ can be expressed as $b_{k+1}^2$ for some integer $b_{k+1}$ using the identity

b_{k