Solve the recurrence relation
$$f(n) = f(n - 1) + f(n - 2)$$
with initial conditions $f(0) = 2, f(1) = 1$. Give full details.
The following is what I have done:
- try $f(n) = r^n$, for some fixed $r$.
- $r^n = r^{n - 1} + r^{n - 2}$
- equation = $r^2 - r - 1 = 0$, if $n = 2$