Britannica Sources used in this answer

Why does the number of subsets with no consecutive integers follow a Fibonacci-like pattern?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

The number of subsets of the set {1,2,…,n} that contain no two consecutive integers follows a Fibonacci-like pattern because of how these subsets are constructed. Let fn represent the number of such subsets for a set of size n.

Any valid subset of {1,2,…,n} falls into one of two mutually exclusive categories:

  • Subsets that do not contain n: These are simply valid subsets of {1,2,…,n−1}, of which there are fn−1.
  • Subsets that do contain n: If a subset contains n, it cannot contain n−1 due to the non-consecutive constraint. Therefore, the remaining elements must form a valid subset of {1,2,…,n−2}, of which there are fn−2.

By summing these two cases, we arrive at the recurrence relation:
fn=fn−1+fn−2

With initial values f0=1 (the null set) and f1=2 (the null set and {1}), this relation generates the sequence 1, 2, 3, 5, 8, and so on, mirroring the structure of the Fibonacci sequence.1