Q. 59 Let an represent the number of bit strings of length n containing two consecutive 1s. What is the recurrence relation for an?
(A) an–2 + an–1 + 2n–2
(B) an–2 + 2an–1 + 2n–2
(C) 2an–2 + an–1 + 2n–2
(D) 2an–2 + 2an–1 + 2n–2
Answer: (A)
Explanation: