GATE Computer ScienceVery hardGATE CS · ISRO

How many subsets of {1, 2, …, 12} (including the empty set) contain no two consecutive integers?

  1. A. 288
  2. B. 466
  3. C. 144
  4. D. 377

Correct answer: D. 377

The count satisfies a(n) = a(n−1) + a(n−2) with a(0) = 1, a(1) = 2, so a(12) = F₁₄ = 377.

More Discrete Mathematics questions

Exams that ask this topic