Question

The Lucas sequence LnL_n is defined by the recurrence relation:

Ln=Ln−1+Ln−2,for n≥3,L_n = L_{n-1} + L_{n-2}, \quad \text{for } n \ge 3,

with L1=1L_1 = 1 and L2=3L_2 = 3.

Which one of the options given is TRUE?

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2023 answer key

Solution

Solve the second-order linear homogeneous recurrence with the characteristic equation.

The recurrence is Ln−Ln−1−Ln−2=0L_n - L_{n-1} - L_{n-2} = 0. Its characteristic equation is r2−r−1=0r^2 - r - 1 = 0, having roots:

r1=1+52,r2=1−52r_1 = \frac{1 + \sqrt{5}}{2}, \quad r_2 = \frac{1 - \sqrt{5}}{2}

The general solution is Ln=c1r1n+c2r2nL_n = c_1 r_1^n + c_2 r_2^n.

Using the initial conditions:

  • For n=1n = 1: c1r1+c2r2=1c_1 r_1 + c_2 r_2 = 1
  • For n=2n = 2: c1r12+c2r22=3c_1 r_1^2 + c_2 r_2^2 = 3

Notice that r1+r2=1r_1 + r_2 = 1 and r12+r22=(r1+r2)2−2r1r2=12−2(−1)=3r_1^2 + r_2^2 = (r_1 + r_2)^2 - 2 r_1 r_2 = 1^2 - 2(-1) = 3. Hence, c1=1c_1 = 1 and c2=1c_2 = 1 satisfy both initial conditions directly.

Therefore, Ln=(1+52)n+(1−52)nL_n = \left(\frac{1 + \sqrt{5}}{2}\right)^n + \left(\frac{1 - \sqrt{5}}{2}\right)^n.

Final answer

Option (A)

Common trap

Confusing Lucas numbers with Fibonacci numbers (which have a 1/51/\sqrt{5} factor and a minus sign).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2023 Computer Science and Information Technology (CS)
Question
15 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.