MCQ · 2 marks · Discrete MathematicsGATE CS 2015 CS-1 — Q45Let ana_nan represent the number of bit strings of length nnn containing two consecutive 1s. What is the recurrence relation for ana_nan?Select one optionA.an−2+an−1+2n−2a_{n-2} + a_{n-1} + 2^{n-2}an−2+an−1+2n−2B.an−2+2an−1+2n−2a_{n-2} + 2a_{n-1} + 2^{n-2}an−2+2an−1+2n−2C.2an−2+an−1+2n−22a_{n-2} + a_{n-1} + 2^{n-2}2an−2+an−1+2n−2D.2an−2+2an−1+2n−22a_{n-2} + 2a_{n-1} + 2^{n-2}2an−2+2an−1+2n−2Check answer