OFFSET
1,2
COMMENTS
Construct a graph G with subsets of {1, 2, ..., n} as vertices. Distinct vertices S and T are connected iff there exists s in S and t in T such that |s - t| = 1. a(n) is the size of the maximum clique in G.
LINKS
Yifan Xie, Python program
EXAMPLE
For n = 3, the set family {{2}, {1,2}, {2,3}, {1,3}, {1,2,3}} satisfies the conditions. On the other hand, at most one of the sets {1}, {3} and {1,3} can belong to the family, and the empty set cannot appear, so the size is at most 5. Hence a(3) = 5.
PROG
(Python) # See links.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Yifan Xie, Apr 10 2026
STATUS
approved
