Problem

Source: 2009 China Western Mathematic Olmpiad

Tags: modular arithmetic, number theory proposed, number theory



Define a sequence $(x_{n})_{n\geq 1}$ by taking $x_{1}\in\left\{5,7\right\}$; when $k\ge 1$, $x_{k+1}\in\left\{5^{x_{k}},7^{x_{k}}\right\}$. Determine all possible last two digits of $x_{2009}$.