Problem

Source: China TST 2003

Tags: number theory unsolved, number theory



Sequence $\{ a_n \}$ satisfies: $a_1=3$, $a_2=7$, $a_n^2+5=a_{n-1}a_{n+1}$, $n \geq 2$. If $a_n+(-1)^n$ is prime, prove that there exists a nonnegative integer $m$ such that $n=3^m$.