Modelling a counting problem with a recurrence

Let ana_n be the number of binary strings of length nn that contain no two consecutive 1s. For example, 0110 is not allowed, but 0101 is. Which recurrence, together with its initial values, correctly describes ana_n?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Recurrence Relations Questions: