sum k=1 to n of (k*k!)