I am working on a problem that I need a simple method of identifying whether a positive integer $n$ can be expressed as \begin{equation*} n=4p^2q^2-(p+q)^2 \end{equation*} or \begin{equation*} n=4p^2q^2-(p-q)^2 \end{equation*} in which $p,q$ are positive integers. Do integers of these forms have any special characters?
One obvious thing is that $n\equiv 0,3 \mod 4$ to qualify either of them. Anything more than that?