For $n \ge 2$ the terms in the sequence
$a = \{1, 6, 17, 45, 118, 309, \ldots\}$ are related by the difference equation
$$a_{n+2} = \boxed{\phantom{XX}} \, a_{n+1} + \boxed{\phantom{XX}} \, a_n $$
The values are positive or negative integers.
Can anyone help me with the equation please. appreciated
Hint: Our recurrence relation is of the form $a_{n+2} = x a_{n+1} + y a_n$, and we would like to determine $x$ and $y$. For $n=1$, we get the equation $17 = 6x+y$, and for $n=2$, we get $45 = 17x+6y$. We now solve this linear system.