sum k^2(k+1)! from k=1 to n