Recursionmedium
0:00.0

Consider the recurrence relation an=2an1+na_n = 2a_{n-1} + n with a0=1a_0 = 1. What is the closed-form expression for ana_n?