Suppose I had the equation: $K = an^2 + bn + c$ where:
- $n$ is a positive unknown integer.
- $a,b,c$ are positive known integers.
Problem: What values of $n$ make $K$ a square number?
(1a) Is there any general method to solving this, or can it only begin to be solved when I select $a,b$ and $c$ (assuming it has solutions).
(1b) What methods should I use to solve this?
(2) Does this problem change in difficulty if I make $a$ and $b$ very large?
I would treat the question as when $$n^2 + an + b = (n + c)^2.$$
This kind of problem can be solved by opening brackets and equating the coefficients, i.e.
$$n^2 + an + b = n^2 + 2cn + c^2,$$
which boils down to
$$a = 2c$$
and
$$b = c^2.$$
So, we have that $c = \frac{a}{2}$, when
$$b = \frac{a^2}{4}.$$