I'm teaching a remedial algebra class, and I recently put a radical equation on a quiz. At this point, the students had only solved polynomial equations by factoring, so the equation had to turn out nice (plus, there would be issues checking whether a potential solution like $1 + \sqrt{2}$ is extraneous).
My Problem: Find $(a, b, c)$ so that $a\sqrt{x + b} = x + c$ has solutions that can be found by squaring and factoring a quadratic.
I asked a computer (Sage) to try various to run through combinations of $a, b, c$, weeding out those that didn't have at least one integer solution. It worked perfectly well, although it required some legwork to get the "program" running. I initially tried some algebraic things with discriminants (making the brute force more efficient, but it ended up taking less than a second either way), but I don't know much about Diophantine equations or perfect squares and had to resort to brute force all the same, just slightly differently.
Question: Is there any way number theory could help me out here? Has anyone personally benefited from a bit of number theory, creating problems like this?
I realize now that just picking two points on a graph like $x = a(y - k)^2 + h$ and connecting them with a line is probably a much more efficient approach to generate equations, but might require more manual labor to avoid equations that are more complicated to solve than I'd like. Even if that is the case...
...this is mostly a question of curiosity; I don't see a pressing need to churn out equations like this, and brute force works just fine. But I've always wondered whether knowing more (or any, at this point) number theory would be at all useful, creating problems for an algebra course like this.
Sidenote: I went through a similar process the last time I taught the class. Then, I wanted a quadratic equation whose solutions, using the quadratic formula, would need simplifying by reducing the radical and then cancelling a common factor of the numerator and denominator. I ended up stumbling around quadratic fields. Although I got my examples, nothing really came of it.