Let $A=\{1,2,3,\cdots,n\}$. If $a_i$ is the minimum element of set $A_i$ where $A_i\subset A$ such that $n(A_i)=3$, find the sum of all $a_i$ for all possible $A_i$
Number of subsets with least element $1$ is $\binom{n-1}{2}$
Number of subsets with least element $r$ is $\binom{n-r}{2}$
Sum of all $a_r$ is $r\binom{n-r}{2}$
How do I find $$\sum_{r=1}^{n-2}r\binom{n-r}{2}$$