Problem

Source: 2018 Latvia BW TST P14

Tags: number theory, number theory unsolved, Integer sequence



Let $a_1,a_2,...$ be a sequence of positive integers with $a_1=2$. For each $n \ge 1$, $a_{n+1}$ is the biggest prime divisor of $a_1a_2...a_n+1$. Prove that the sequence does not contain numbers $5$ and $11$.