Jeff H. answered 10/10/22
Princeton University Student Specializing in Math/Science
S = -2, 0, -4, -14, -30, -52
Differences of each successive term in S = 2, -4, -10, -16, -22
The differences can be seen to take on the closed form solution D(n) = 8 - 6*n, where the first term in the sequence is n=1.
Now we can find a solution for S:
S(n) = -2 + ∑i=1n-1 D(i) = -2 + (n-1)*(8) - 6*∑i=1n-1i = -2 + (n-1)*(8) - 6*(n-1)(n)/2 = -2 + (n-1)(8 - 6n/2)
Note: ∑i=1n i = n*(n+1)/2