Question 976
Two non-decreasing sequences of nonnegative integers have different first terms. Each sequence has the property that each term beginning with the third is the sum of the previous two terms, and the seventh term of each sequence is $N$. What is the smallest possible value of $N$?
Xem đáp án và lời giải
Đáp án: $104$
Denote the two sequences by $(a_n)$ and $(b_n)$, and assume without loss of generality that $a_1 < b_1$. Because each sequence is non-decreasing and consists of nonnegative integers, we have $0 \leqslant a_1 \leqslant a_2$ and $0 \leqslant b_1 \leqslant b_2$. Iterating the recurrence $x_k = x_{k-1} + x_{k-2}$ up to the seventh term gives \[ x_3 = x_1 + x_2, \quad x_4 = x_1 + 2x_2, \quad x_5 = 2x_1 + 3x_2, \quad x_6 = 3x_1 + 5x_2, \quad x_7 = 5x_1 + 8x_2. \] Setting $a_7 = b_7 = N$ yields $5a_1 + 8a_2 = 5b_1 + 8b_2$, or \[ 5(b_1 - a_1) = 8(a_2 - b_2). \] Since $\gcd(5, 8) = 1$ and $b_1 - a_1 > 0$, $8$ divides $b_1 - a_1$ and $5$ divides $a_2 - b_2$. Thus $b_1 - a_1 \geqslant 8$ and $a_2 - b_2 \geqslant 5$, so \[ 0 \leqslant a_1 \leqslant b_1 - 8 \leqslant b_2 - 8 \leqslant a_2 - 13. \] Hence $a_1 \geqslant 0$ and $a_2 \geqslant 13$, which gives $N = 5a_1 + 8a_2 \geqslant 5(0) + 8(13) = 104$. Equality holds when $(a_1, a_2) = (0, 13)$ and $(b_1, b_2) = (8, 8)$, both of which are non-decreasing and give $a_7 = b_7 = 104$.