N=-1: Proof 1 (solvability of the equation)

Proof: Thm. 3.3.4 of book Quadratic Diophantine Equation, T. Andreescu and D. Andrica.