Maths Olympiad Prep

Track / Stage 7 / 223 of 300 #1623 of 1964

Problem 1623

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.5 Prove it

The sequence a1,a2,a3,a_1, a_2, a_3, \ldots satisfies a1=1a_1=1, and for all n2n \ge 2, it holds that
an={an1+3  if n1{a1,a2,,,an1};an1+2  otherwise. a_n= \begin{cases} a_{n-1}+3 ~~ \text{if} ~ n-1 \in \{ a_1,a_2,\ldots,,a_{n-1} \} ; \\ a_{n-1}+2 ~~ \text{otherwise}. \end{cases}
Prove that for all positive integers n, we have
an<n(1+2). a_n < n \cdot (1 + \sqrt{2}).

Dominik Burek (Poland) (also known as Burii)

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.

Official solution

To prove that for all positive integers n n , we have an<n(1+2) a_n < n \cdot (1 + \sqrt{2}) , we will use induction and some properties of the sequence.

1. Base Case:
For n=1 n = 1 :
a1=1 a_1 = 1
We need to check if 1<1(1+2) 1 < 1 \cdot (1 + \sqrt{2}) :
1<1+2 1 < 1 + \sqrt{2}
Since 21.414 \sqrt{2} \approx 1.414 , it is clear that 1<2.414 1 < 2.414 . Thus, the base case holds.

2. Inductive Step:
Assume that for some k1 k \geq 1 , the inequality ak<k(1+2) a_k < k \cdot (1 + \sqrt{2}) holds. We need to show that ak+1<(k+1)(1+2) a_{k+1} < (k+1) \cdot (1 + \sqrt{2}) .

By the definition of the sequence:
ak+1={ak+3if k{a1,a2,,ak}ak+2otherwise a_{k+1} = \begin{cases} a_k + 3 & \text{if } k \in \{a_1, a_2, \ldots, a_k\} \\ a_k + 2 & \text{otherwise} \end{cases}

We consider two cases:

- Case 1: k{a1,a2,,ak} k \in \{a_1, a_2, \ldots, a_k\}
ak+1=ak+3 a_{k+1} = a_k + 3
By the induction hypothesis:
ak<k(1+2) a_k < k \cdot (1 + \sqrt{2})
Therefore:
ak+1=ak+3<k(1+2)+3 a_{k+1} = a_k + 3 < k \cdot (1 + \sqrt{2}) + 3
We need to show:
k(1+2)+3<(k+1)(1+2) k \cdot (1 + \sqrt{2}) + 3 < (k+1) \cdot (1 + \sqrt{2})
Simplifying the right-hand side:
(k+1)(1+2)=k(1+2)+(1+2) (k+1) \cdot (1 + \sqrt{2}) = k \cdot (1 + \sqrt{2}) + (1 + \sqrt{2})
Thus, we need:
k(1+2)+3<k(1+2)+1+2 k \cdot (1 + \sqrt{2}) + 3 < k \cdot (1 + \sqrt{2}) + 1 + \sqrt{2}
Simplifying:
3<1+2 3 < 1 + \sqrt{2}
Since 21.414 \sqrt{2} \approx 1.414 , it is clear that 3<2.414 3 < 2.414 , which is false. Therefore, this case does not hold.

- Case 2: k{a1,a2,,ak} k \notin \{a_1, a_2, \ldots, a_k\}
ak+1=ak+2 a_{k+1} = a_k + 2
By the induction hypothesis:
ak<k(1+2) a_k < k \cdot (1 + \sqrt{2})
Therefore:
ak+1=ak+2<k(1+2)+2 a_{k+1} = a_k + 2 < k \cdot (1 + \sqrt{2}) + 2
We need to show:
k(1+2)+2<(k+1)(1+2) k \cdot (1 + \sqrt{2}) + 2 < (k+1) \cdot (1 + \sqrt{2})
Simplifying the right-hand side:
(k+1)(1+2)=k(1+2)+(1+2) (k+1) \cdot (1 + \sqrt{2}) = k \cdot (1 + \sqrt{2}) + (1 + \sqrt{2})
Thus, we need:
k(1+2)+2<k(1+2)+1+2 k \cdot (1 + \sqrt{2}) + 2 < k \cdot (1 + \sqrt{2}) + 1 + \sqrt{2}
Simplifying:
2<1+2 2 < 1 + \sqrt{2}
Since 21.414 \sqrt{2} \approx 1.414 , it is clear that 2<2.414 2 < 2.414 . Thus, this case holds.

Since the inductive step holds for both cases, by the principle of mathematical induction, the inequality an<n(1+2) a_n < n \cdot (1 + \sqrt{2}) is true for all positive integers n n .

\blacksquare

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