Recursionhard
0:00.0

Consider the recurrence an=2an1an2+6na_n = 2a_{n-1} - a_{n-2} + 6n with a0=0,a1=1a_0 = 0, a_1 = 1. What is the closed-form solution ana_n?