So the common difference is +9.
I'm getting confused how to use the formula to figure this out. I wrote a C++ program to help me solve it so I got the answer but I still need to know how to do it mathematically.
The formula to solve for the total is:
$S_n = \frac{n}{2}(a_1 + a_n) $
Here's what I can plug in:
$363 = \frac{n}{2}(-12 + a_n)$
but I can't solve it if I don't know what $a_n$ is equal to. To solve for $a_n$, I use the formula.
$a_n = a_1 + (n - 1)d$
Here's what I can plug in.
$a_n = -12 + (n - 1)9$
I'm confused... How can I solve either one if I need the variable that the other one helps me solve to use it for the other formula? It's like a paradox. I need to solve n in the first equation to solve for $a_n$, but I also need $a_n$ to solve for n.
Substitute the expresion for $a_n$ in the formula of $S_n$:
$$363=\frac n2\big(-12+[-12+(n-1)9]\big)$$