Finding the explicit formula of a given recurrence relation

recurrence-relationssequences-and-series

This is the recurrence relation: $a_n=2a_{n-1}+2n, a_2=2$.The way we have found the explicit formulas in my course in the past was to notice some pattern either by finding several values or using the next terms to define $a_n$.However, I'm completely lost on the equation above.

Best Answer

The following manipulations yield a homogeneous linear recurrence relation with constant coefficients:

$$a_n=2a_{n-1}+2n$$

$$a_{n-1}=2a_{n-2}+2(n-1)$$

$$a_n-a_{n-1}=2a_{n-1}-2a_{n-2}+2$$

$$a_n=3a_{n-1}-2a_{n-2}+2$$

$$a_{n-1}=3a_{n-2}-2a_{n-3}+2$$

$$a_n-a_{n-1}=3a_{n-1}-5a_{n-2}+2a_{n-3}$$

$$a_n=4a_{n-1}+5a_{n-2}-2a_{n-3}$$

Can you take it from here?

Related Question