Recursionhard
0:00.0

The sequence of partial sums Sn=k=0nakS_n = \sum_{k=0}^{n} a_k satisfies the recurrence Sn=2Sn1+nS_n = 2S_{n-1} + n with S0=1S_0 = 1. What is the closed form for SnS_n?