# Math Help - general solution of a recurrence relation

1. ## general solution of a recurrence relation

Hi
Is this the correct general solution for the following recurrence relation
$0 = a_{n+2} + a_{n+1} - 12a_{n}$

$x^2 + x -12 = 0$
(x+4)(x-3) = 0
x = -4, x = 3

Therefore the general solution is
$a_n = A-4^n + B3^n$
where A and B are arbitrary constants

*I'm not sure if it's ok to have the negative in there.

Thanks for any time + help

2. Originally Posted by dunsta

Therefore the general solution is
$a_n = A-4^n + B3^n$
where A and B are arbitrary constants

*I'm not sure if it's ok to have the negative in there.
The general solution is $a_n = A\times (-4)^n + B\times 3^n$

3. Thanks Pickslides, I really can't thank you and the other regulars, who have helped and tutored me via this forum, enough.