I'm studying computer science, but my maths is a little lacking, and my course material isn't being explicit about how things are calculated (they expect you to just know).
Given a sequence such as:
(n − 1) + (n − 2) + ⋯ + 1
That results in the formula (if that's even the correct term?):
½n^2 − ½n
So:
(n − 1) + (n − 2) + ⋯ + 1 = ½n^2 − ½n
How do I work out what that formula(?) is?
What is that type of maths called?
I'm at a real loss... Without having any direction, it's nearly impossible to Google for a solution.
UPDATE:
So if I only had:
(n − 1) + (n − 2) + ⋯ + 1
How would I work out what the formula would be?
1/2n^2 - 1/2n
is the answer, and what process was taken to discover it..... I can work out the sequence, and how it will end, but I'm at a loss how to convert that sequence in to something like1/2n^2 - 1/2n
.... That's the process I'm trying to identify to study further. – Jack_Hu Jan 08 '20 at 14:47