Problem

Source: 2021 Junior Macedonian Mathematical Olympiad P3

Tags: number theory, Diophantine equation



Find all positive integers $n$ and prime numbers $p$ such that $$17^n \cdot 2^{n^2} - p =(2^{n^2+3}+2^{n^2}-1) \cdot n^2.$$ Proposed by Nikola Velov