I am trying to come up with a fast partial sum for a big series in a program that I am writing in order to simplify some loops. However there is an internal sum inside that to me should be able to be simplified. What would be the partial sum of this be: $$\sum^h_{i=1}\sum^i_{j=1}ij$$
Any help would be much appreciated! Thanks in advance