chapter
    Recurrences and Generating Functions PYQs for GATE CS

    Solve 3+ Recurrences and Generating Functions previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2023 PYQ
    Level 3: Exam Standard
    The Lucas sequence is defined by the recurrence relation:


    with and .

    Which one of the options given is TRUE?
    Question 2
    2022 PYQ
    Level 3: Exam Standard

    Which one of the following is the closed form for the generating function of the sequence defined below?

    Question 3
    2022 PYQ
    Level 3: Exam Standard

    Consider the following recurrence:

    Then, which of the following statements is/are TRUE?

    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Recurrences and Generating Functions PYQs for GATE CS

    Solve 3+ Recurrences and Generating Functions previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Recurrences and Generating Functions

    Chapter Journey

    1. Generating Functions for Sequences
    Algebraic representation, standard transforms, and coefficient extraction.
    2. Linear Recurrences & Characteristic Roots
    Solving constant-coefficient linear difference equations and handling repeated roots.
    3. Binary & Divide-and-Conquer Recurrences
    Master theorem applications and algorithmic time complexity analysis.
    Goal: Master the translation between discrete sequences and continuous algebraic functions to solve complex exam problems efficiently.

    The Core Intuition: What is a Generating Function?

    The Core Idea

    A sequence is just a list of numbers:

    A Generating Function packs this entire infinite list into a single algebraic object (a formal power series):

    Why do we do this?

    • Algebraic Power: Add, multiply, differentiate, and integrate to perform complex operations on the sequence.
    • Closed Forms: Compress an infinite series into a simple fraction (like ).
    • Extraction: Use algebraic techniques to find a direct formula for the -th term, .
    Think of it as a data compression algorithm for mathematics.

    Recurrences and Generating Functions: Solved Questions with Step-by-Step Explanations (3 Problems)

    Question 1 · Engineering Mathematics · 2023 MCQ
    The Lucas sequence is defined by the recurrence relation:


    with and .

    Which one of the options given is TRUE?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a second-order linear homogeneous recurrence. The characteristic roots are the golden ratio and its conjugate, and the initial conditions perfectly match the sum of their powers.

    Exam route: Write the characteristic equation . The roots are and . Notice that and . These exactly match and . Thus, the coefficients are both 1.

    Learning route:

    Step 1: Identify the recurrence type. The relation is a linear homogeneous recurrence with constant coefficients.

    Step 2: Form the characteristic equation. Rewrite as . The characteristic equation is .

    Step 3: Find the roots. Using the quadratic formula, . Let and .

    Step 4: Write the general solution. Since the roots are distinct, .

    Step 5: Apply initial conditions.

    For : .

    For : .

    We know (sum of roots) and (product of roots).

    Calculate .

    Comparing this with the condition, we see that and is a valid solution.

    Step 6: Verify with . , which matches .

    Therefore, the closed form is .

    Answer: A

    Question 2 · Engineering Mathematics · 2022 MCQ

    Which one of the following is the closed form for the generating function of the sequence defined below?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a generating function problem where the sequence has different rules for even and odd indices. We split the generating function into two parts: one for even indices and one for odd indices.

    Step 1: Write out the first few terms of the sequence.

    (even)

    (odd, )

    (even)

    (odd, )

    (even)

    (odd, )

    The sequence is

    Step 2: Split the generating function .

    Step 3: Evaluate the even part.

    For even indices, .

    .

    Step 4: Evaluate the odd part.

    For odd indices, .

    .

    We know the standard generating function .

    Substitute :

    .

    Step 5: Combine the parts.

    .

    Step 6: Match with the given options.

    The options are in the form .

    We can rewrite as .

    So .

    Combine the terms with in the denominator:

    .

    Add this to :

    .

    Thus, .

    This matches Option A.

    Answer: A

    Question 3 · Engineering Mathematics · 2022 MSQ

    Consider the following recurrence:

    Then, which of the following statements is/are TRUE?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Insight: This is a piecewise divide-and-conquer recurrence. Instead of forcing a closed form immediately, compute the first few terms and use mathematical induction to verify each option.

    Exam route: Compute through . Check each option for small . If it holds, prove by induction using the parity of the index (even vs. odd).

    Learning route:

    Step 1: Compute initial values.

    Step 2: Check Option A: .

    For , . True.

    Assume true for : .

    For , the index is , which is odd.

    .

    By induction, Option A is TRUE.

    Step 3: Check Option B: .

    For , . True.

    Assume true for : .

    For , the index is , which is even.

    .

    By induction, Option B is TRUE.

    Step 4: Check Option C: .

    For , . Formula gives . True.

    Assume true for : .

    For , the index is , which is even.

    .

    By induction, Option C is TRUE.

    Step 5: Check Option D: .

    For , . Formula gives . True.

    For , . Formula gives .

    Since , Option D is FALSE.

    Answer: A, B, C

    More previous year questions (pyqs) in this unit