(In reply to
a solution if double root by Larry)
You don't need the spreadsheet to test all 45 of those cases. If we have a double root then the quadratic is of the form f(x)=x^2-2rx+r^2.
Then apply the coprime condition, then we must have 2r is coprime to r^2. But clearly r divides both 2r and r^2.
So r can only be 1, 0 or -1. We can reduce this further from the requirement that a and b are natural numbers (positive integers). Then a=2 from r=1 is the only option.