Problem

Source: 2022 Dutch BxMO TST p3

Tags: Diophantine equation, diophantine, number theory



Find all pairs $(p, q)$ of prime numbers such that $$p(p^2 -p - 1) = q(2q + 3).$$