I've been having trouble finding the pattern and sum to a sequence that goes like this:
So when $c=3$, the sequence is $c(c-2)+(c-1)(c-1)+(c-2)c=2c(c-2)+(c-1)(c-1)$.
And when $c=4$, the sequence is $c(c-3)+(c-1)(c-2)+(c-2)(c-1)+(c-3)c=2(c-3)+2(c-1)(c-2)$
And when $c=5$, the sequence is $c(c-4)+(c-1)(c-3)+(c-2)(c-2)+(c-3)(c-1)+(c-4)c=2c(c-4)+2(c-1)(c-3)+(c-2)(c-2)$
So essentially there will be $c$ terms total. I substituted in the numbers for $c=3,4$ and got $3*1 + 2*2 + 1*3$ and $4*1 + 3*2 + 2*3 + 1*4$. This is not an arithmetic sequence or geometric sequence, but there is definitely a pattern. I want to know the pattern because I want to generalize it in order to find the sum of such a sequence where c equals some number.
Edit: Since this question might be confusing, I did find the solution for the summation of such a sequence, which is $c(c-1)(c-2)/6$. It was just that no context was provided for this answer. Even though it works for all c's that I plugged in, I have no idea how this summation formula came to be at all, and I was just looking for some kind of explanation for it.
The link to the website that I found this answer off of is this: https://cs.nyu.edu/mishra/COURSES/15.SOCNET/HW1s-15.pdf
It is for Q1 part b, which follows from the formula given in part a. It is a networks problem, but the part that I am having trouble understanding is not network-related at all but rather how they found the formula for the sequence. I managed to work out the second term in the numerator with the formula $n(a_1+a_n)/2$ (i.e., how one would find the sum of a sequence of integers going from 1 to 100), but I have no idea how they came up with the third term in the numerator.