closed by
483 views
0 votes
0 votes
closed as a duplicate of: GATE CSE 2016 Set 1 | Question: 2

Let $a_{n}$ be the number of $n$-bit strings that do NOT contain two consecutive $1's.$ Which one of the following is the recurrence relation for $a_{n}?$

  1. $a_{n}=a_{n-1}+2a_{n-2}$
  2. $a_{n}=a_{n-1}+a_{n-2}$
  3. $a_{n}=2a_{n-1}+a_{n-2}$
  4. $a_{n}=2a_{n-1}+2a_{n-2}$
closed by

Related questions

1 votes
1 votes
2 answers
1
aditi19 asked May 14, 2019
883 views
What will be solution of recurrence relation if roots are like this: r1=-2, r2=2, r3=-2, r4=2is this the case of repetitive roots?
0 votes
0 votes
2 answers
2
Lakshman Bhaiya asked Oct 5, 2018
1,476 views
Let $T(n) = T(n-1) + \frac{1}{n} , T(1) = 1 ;$ then $T(n) = ? $$O(n^{2})$$O(logn)$$O(nlogn)$$O(n^{2}logn)$
22 votes
22 votes
1 answer
3
P C asked Dec 31, 2022
1,696 views
What is the recurrence relation for the ternary strings of length $n$ which can be constructed using 0,1 or 2 only such that the number of 0’s and number of 1's is od...
0 votes
0 votes
0 answers
4