Question
Let be the recurrence relation defined as follows:
,
, and
for
Which one of the following statements is TRUE?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2024 answer key
Solution
Solve the linear homogeneous recurrence relation using its characteristic equation and substitute the initial conditions to find the coefficients.
- The characteristic equation of is:
- The general solution is .
- Substituting the given base cases and :
- For :
- For :
Solving this system gives and .
- Because , the term vanishes completely, leaving the exact closed form:
Final answer
Option (A)
Common trap
Choosing from the larger characteristic root without checking that the initial conditions make the coefficient of equal to zero.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
- 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.