Problem

Source: 2018 Centroamerican and Caribbean Math Olympiad

Tags: number theory, Centroamerican



Determine all triples $(p, q, r)$ of positive integers, where $p, q$ are also primes, such that $\frac{r^2-5q^2}{p^2-1}=2$.