Are a, b integers as well? If so, then another criterion comes from the rational roots test:Originally Posted byJameson

Let n be a positive integer, then let

So

Thus we know that the only rational b values that satisfy this equation are of the form:

Since b must be an integer, the only possible values for b are those for which factors of n are factors of a^2-n.

Just a thought.

-Dan