Problem

Source: 2019 Greece National Olympiad

Tags: number theory



Define the sequnce ${(a_n)}_{n\ge1}$ by $a_1=1$ and $a_n=5a_{n-1}+3^{n-1}$ for $n\ge2$. Find the greatest power of $2$ that divides $a_{2^{2019}}$.