Problem

Source: KMO 2023 P1

Tags: number theory



A sequence of positive reals $\{ a_n \}$ is defined below. $$a_0 = 1, a_1 = 3, a_{n+2} = \frac{a_{n+1}^2+2}{a_n}$$Show that for all nonnegative integer $n$, $a_n$ is a positive integer.