I need some help finding a pair of integers $(a,b)$ that satisfies this constraint: $x^2 - ax - b = 0$ has integer solutions and $x^2 +ax+b =0$ has integer solutions. The pair $(5,6)$ satisfies this because $x^2 - 5x - 6 = 0$ has integer solutions i.e. x = {-1,6} and $x^2 + 5x + 6 = 0$ has integer solutions i.e. x = {-3,-2}.
If there is no general form can you help me to at least find another pair of integers that satisfies this constraint other than $(5,6)$? Thanks in advance.
EDIT: the roots of the quadratic equations $x^2 - ax - b = 0$ hand $x^2 +ax+b =0$ can be rational also. The need not be constrained to integers. Just make sure they aren't irrational. The pair (a,b) however must be integers.
Let the discriminants of the two equations be $a^2+4b=k^2$ and $a^2-4b=l^2$. Note that
Now $l^2,a^2,k^2$ are perfect squares in arithmetic progression, so $l^2+k^2=2a^2$ or $(l/a)^2+(k/a)^2=2$. All rational solutions for $l/a$ and $k/a$ may be parametrised as follows: $$\frac la=\frac{m^2-2m-1}{m^2+1}\qquad\frac ka=\frac{m^2+2m-1}{m^2+1}$$ where $m\in\mathbb Q\cup\{\infty\}$.
Given a rational solution for $\frac la$ and $\frac ka$, write the fractions with a common denominator, from which $l,a,k$ are immediately determined up to sign (their signs must all agree). From there $b$ may be easily worked out.