Problem

Source: 2018 Romania JBMO TST 4.1

Tags: number theory, Perfect Square



Determine the prime numbers $p$ for which the number $a = 7^p - p - 16$ is a perfect square. Lucian Petrescu