112 views
1 votes
1 votes

What is the solution to the recurrence relation
$$f_{n} = f_{n-1} + f_{n-2} \quad \text{ with } f_{0} = 0,f_{1} = 1?$$

  1. $f_{n} =\dfrac{1}{\sqrt{5}}\bigg(\dfrac{(1 + \sqrt{5})}{2}\bigg)^{n} - \dfrac{-1}{\sqrt{5}}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg)^{n}$
  2. $f_{n} =\dfrac{1}{\sqrt{5}}\bigg(\dfrac{(1 + \sqrt{5})}{2}\bigg)^{n} + \dfrac{-1}{\sqrt{5}}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg)^{n}$
  3. $f_{n} =\dfrac{1}{\sqrt{5}}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg)^{n} + \dfrac{-1}{\sqrt{5}}\bigg(\dfrac{(1 + \sqrt{5})}{2}\bigg)^{n}$
  4. $f_{n} =\dfrac{1}{\sqrt{5}}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg)^{n} - \dfrac{-1}{\sqrt{5}}\bigg(\dfrac{(1 + \sqrt{5})}{2}\bigg)^{n}$

1 Answer

Best answer
1 votes
1 votes

It is linear homogeneous recurrence, and its characteristic equation is given by
$r^{2} - r - 1 = 0$

Solving using quadratic formula we get,

$r_{1} = \dfrac{1+\sqrt{5}}{2}$ and $r_{2} = \dfrac{1-\sqrt{5}}{2}$

By "Distinct Roots Theorem"

$f_{n} = \alpha_{1}\bigg(\dfrac{(1 + \sqrt{5})}{2}\bigg)^{n} + \alpha_{2}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg)^{n}$

Now we should find $\alpha_{1}$ and $\alpha_{2}$ using initial conditions.

$f_{0} = \alpha_{1} + \alpha_{2} = 0$

$f_{1} = \alpha_{1}\bigg(\dfrac{(1 + \sqrt{5})}{2} \bigg)+ \alpha_{2}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg) = 1$

So, $\alpha_{1} = \dfrac{1}{\sqrt{5}}$ and $\alpha_{2} = \dfrac{-1}{\sqrt{5}}$

$f_{n} =\dfrac{1}{\sqrt{5}}\bigg(\dfrac{(1 + \sqrt{5})}{2}\bigg)^{n} + \dfrac{-1}{\sqrt{5}}\bigg(\dfrac{(1 - \sqrt{5})}{2}\bigg)^{n}$ is the solution.

So, the correct answer is $(B)$.

selected by
Answer:

Related questions

1 votes
1 votes
1 answer
1
gatecse asked Jul 5, 2020
143 views
The value of $x_5$ for the recurrence relation defined by $x_n = 5x_{n-1} + 3$ with initial condition $x_1 = 3$ is _________
2 votes
2 votes
1 answer
2
gatecse asked Jul 5, 2020
115 views
The solution to the recurrence relation $a_{n}=a_{n-1}+2^{n}$ with $a_{0}=1$ is ________$a_{n} = 2^{n} - 1 $$a_{n} = 2^{n+1} - 2 $$a_{n} = 2^{n+1} - 1 $$a_{n} = 2^{n-1} -...
2 votes
2 votes
2 answers
4
gatecse asked Jul 5, 2020
191 views
Calculate $a_{100} + a_{99}$ where $a_n$ is given by the recurrence relation $a_{n} = 2a_{n-1} - a_{n-2}$ with $a_{0} = 5,a_{1} = 4$?