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ₙ?
- (A) aₙ = aₙ₋₁ + 2aₙ₋₂
- (B) aₙ = aₙ₋₁ + aₙ₋₂
- (C) aₙ = 2aₙ₋₁ + aₙ₋₂
- (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