I'm looking for a simpler formula to calculate this sum:
$$n\cdot 1 + (n-1)\cdot 2 + ... + 2 \cdot (n-1) + 1\cdot n$$ Alternate representation (but should be equal to the above): $$\sum \limits_{k=1}^{n}(n+1-k)\cdot k$$
Rationale behind requested formula
When reviewing code implementing a minion game, the problem of how many substrings exists within a long text, and how many characters will the sum of all these substrings be came up. I found that the number of substrings is:
$$ n + n-1 + n-2 + ... + 2 + 1 = \frac{(n+1)\cdot n}{2} $$
Reasoning for finding number of substrings is that you have $n$ substrings of length $1$, $n-1$ of length $2$, and so on until the end where you only have $1$ substring of length $n$.
Using the same logic, to sum up the length of all these substrings, we arrive at the formula at the top, which I would like to have simplified. That is, multiply the count of substrings with the length of the substring, and sum all these.
I have found the article "The Kth Sum of N Numbers", which seems to produce the number I want in the column for c3, with the $n$ enumerated as $rN$. But I can't read out of this article how the column is calculated, and what formula to use.