Given that $a_0=1, a_1=5$, and $$a_n=\frac{2a_{n-1}^2-3a_{n-1}-9}{2a_{n-2}}$$ Show that all $a_n$ are integers.
Factoring the numerator gives $$a_n=\frac{(2a_{n-1}+3)(a_{n-1}-3)}{2a_{n-2}}$$ First we notice that the numerator must be divisible by $2$ to be an integer. Assume $a_{n-1}$ and $a_{n-2}$ are both odd (which is true for the base case $a_{n-2}=1$), then $a_n - 3$ must be divisible by $2$. If $a_n$ is even, then $a_{n-1}$ cannot be an integer. Therefore, we must prove that $a_n$ is not $3$ (mod $4$), which is easy to do with induction. From here, I don't know how to prove that $a_{n-2}|(2a_{n-1}+3)(a_{n-1}-3)$.