Computer Sciences > Gate 2016 Set-1 > Recurrence Relation
Let an be the number of n-bit strings that do NOT contain two consecutive 1s. Which one of the following is the recurrence relation for an?
A
an = an−1 +2an-2
B
an= an−1 +an-2
C
an= 2an−1 +an-2
D
an= 2an−1 +2an-2

Correct : Recurrence Relation

Similar Questions

Consider the recurrence relation a1 = 8, an = 6n2 + 2n + an-1. Let a99 = k x 104. The value of K is _____
#573 Fill in the Blanks
A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......