Find all prime numbers $p$ such that there exists a positive integer $n$ where $2^n p^2 + 1$ is a square number.
Source: Indonesian National Science Olympiad 2018, Mathematics P6
Tags: number theory
Find all prime numbers $p$ such that there exists a positive integer $n$ where $2^n p^2 + 1$ is a square number.