Recurrence: GATE CS Previous Year Questions

Recurrence · Discrete Mathematics

10 questions · asked in 7 of 27 years (2000–2026)

MCQ 7 · MSQ 1 · NAT 21-mark 5 · 2-mark 5

2000Questions per year2026

Questions 1–5 of 10

Q1GATE 20231 markMCQ−0.33 if wrong
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}, \; for \; n\geq 3,
with L1=1  and  L2=3L_1=1 \; and \; L_2=3
Which one of the options given is TRUE?

Q2GATE 20222 marksMCQ−0.67 if wrong
Which one of the following is the closed form for the generating function of the sequence {an}n≥0\{a_n \}_{n \geq 0} defined below?
an={n+1,n is odd1,otherwisea_n= \left \{ \begin{matrix} n+1, &n \text{ is odd} \\ 1,& \text{otherwise} \end{matrix} \right.

Q3GATE 20222 marksMSQ
Consider the following recurrence:
f(1)=1;f(2n)=2f(n)−1,for n≥1;f(2n+1)=2f(n)+1,for n≥1.\begin{aligned} f(1)&=1; \\ f(2n)&=2f(n)-1, & \text{for }n \geq 1; \\ f(2n+1)&=2f(n)+1, & \text{for }n \geq 1. \end{aligned}
Then, which of the following statements is/are TRUE?

One or more options are correct.

Q4GATE 2017 (Session 2)2 marksNAT
If the ordinary generating function of a sequence {an}n=0∞  is  1+z(1−z)3\{a_{n}\}_{n=0}^{\infty} \; is \; \frac{1+z}{(1-z)^{3}} then a3−a0a_{3}-a_{0} is equal to ______.

Q5GATE 2016 (Session 1)1 markMCQ−0.33 if wrong
Let ana_{n} be the number of n-bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for ana_{n}?

Keep practising

Topics in Discrete Mathematics

All CS topics ›