Problem

Source: Mediterranean 2018 P3 MMC

Tags: number theory, prime numbers, Mediterranean



An integer $a\ge1$ is called Aegean, if none of the numbers $a^{n+2}+3a^n+1$ with $n\ge1$ is prime. Prove that there are at least 500 Aegean integers in the set $\{1,2,\ldots,2018\}$. (Proposed by Gerhard Woeginger, Austria)