$\newcommand{\Silly}{{\rm S \scriptsize ILLY}}$
What does
$$
\sum_{k=2}^{n-1} (k-1)(n-k)
$$
count?
(a)
The number of 3-element subsets of an $(n-1)$-element set.
(b)
The number of times you fart when running algorithm $\Silly(n)$.
(c)
The number of 3-element subsets of an $(n+1)$-element set.
(d)
The number of 3-element subsets of an $n$-element set.