Problem

Source: Serbia EGMO TST 2015

Tags: number theory



Let {$a_n$}$_{1}^{\infty}$ be array such that $a_1=2$ and for every $n\ge1$ $a_{n+1}=2^{a_n}+2$. Let $m,n$ be positive integers such that $m<n$. Prove that $a_m|a_n$.