Recursionhard
0:00.0

What is the closed-form solution for the non-homogeneous recurrence an=an1+na_n = a_{n-1} + n with a0=0a_0 = 0?