Problem

Source: 2020 Austrian Regional Competition For Advanced Students p4

Tags: number theory, Diophantine equation, diophantine



Find all quadruples $(p, q, r, n)$ of prime numbers $p, q, r$ and positive integer numbers $n$, such that $$p^2 = q^2 + r^n$$ (Walther Janous)