Problem

Source:

Tags:



Find the number of ordered pairs of integers (p,q) satisfying the equation $p^2-q^2+p+q=2014$.