How do you solve a linear recurrence relation with a constant factor? For example, given the sequence
$f(n)=f(n-2)+f(n-1)+1$
how do you find the characteristic equation? When I try to solve
$r^n=r^{n-2}+r^{n-1}+1 $
I can’t factor out a term to solve for r.