Suppose I want to find the $ n $ for which
$$(n)(n+1)/2 = 10 \Longrightarrow n^2 + n - 20 = 0$$
Clearly a solution is $4$. But, suppose we wanted to find that solution by use of quadratic formula. We get
$$4 = \frac {-1 \pm \sqrt{1-80}}{2} $$
But that's clearly not true. What am I doing wrong?
You need a positive $$ \frac {-1 \pm \sqrt{1\color{green}{+}80}}{2} $$ Remember that the discriminant for $ax^2 +bx + c = 0$ is $b^2 -4ac$. Here $c = -20$. So $d = 1^2 - 4\cdot 1\cdot (-20) = 1 - (-80) = 1 + 80$.