Supposing I have the following sequence based on two indexes:
$a$ and $b$.
For $a$ starting with $1$ and $b$ starting with $5$ we have the following sum:
$$1 \cdot 5 + 2 \cdot 4 + 3 \cdot 3 + 4 \cdot 2 + 5 \cdot 1$$
i.e. $a$ is incremented from value $1$ till the value of $b$ and $b$ is decremented till the value of $a$. They are multiplied and the summed with the result of the previous multiplication.
Is there any short formula that permits me to get the same results for a much bigger range of $a$ and $b$?