Let $\{a_n\}_{n=1}^{\infty}$ be a sequence of positive integers for which \[ a_{n+2} = \left[\frac{2a_n}{a_{n+1}}\right]+\left[\frac{2a_{n+1}}{a_n}\right]. \] Prove that there exists a positive integer $m$ such that $a_m=4$ and $a_{m+1} \in\{3,4\}$. Note. $[x]$ is the greatest integer not exceeding $x$.
Problem
Source: Iran second round- 2013- P6
Tags: function, inequalities, algebra proposed, algebra, Recurrence