Master Mathematics.

Combinatorics · Recurrence Relations · Problem 2

Digits 1 and 2 with no two 2's together

Let be the set of all -digit numbers whose digits are all or and there are no consecutive 's. (Example: is in but is not.) Then the number of elements in is

  1. (A)
  2. (B)
  3. (C)
  4. (D)

Source: ISI BStat/BMath