# Pair of Integers

Two numbers $A,B$ satisfy the equations $\begin{cases} AB = p \\ A + B = q \end{cases}$ for integers $p, q$.

Under what condition on $p,q$ are $A$ and $B$ also integers?

This problem is a variation on this one.

×