Problem

Source: 2023 Bulgaria JBMO TST Problem 3

Tags: number theory, prime numbers, Diophantine equation



Find all natural numbers $a$, $b$, $c$ and prime numbers $p$ and $q$, such that: $\blacksquare$ $4\nmid c$ $\blacksquare$ $p\not\equiv 11\pmod{16}$ $\blacksquare$ $p^aq^b-1=(p+4)^c$