GATE CS 2016, set 1 · Question 12 · Engineering Mathematics · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Let aₙ be the number of n-bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for aₙ?

  1. (A) aₙ = aₙ₋₁ + 2aₙ₋₂
  2. (B) aₙ = aₙ₋₁ + aₙ₋₂
  3. (C) aₙ = 2aₙ₋₁ + aₙ₋₂
  4. (D) aₙ = 2aₙ₋₁ + 2aₙ₋₂
Answer

Answer (B)

Answer from the official GATE CS 2016 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes