Recursionhard
0:00.0

Determine the closed-form solution for the non-homogeneous recurrence relation an=5an−1−6an−2+2na_n = 5a_{n-1} - 6a_{n-2} + 2^n with initial conditions a0=1,a1=3a_0 = 1, a_1 = 3.