login
A395405
a(n) is the maximum size of a set family F on {1, 2, ..., n} such that for any pair of not necessarily distinct sets S, T in F, there exists s in S and t in T such that |s - t| = 1.
2
0, 1, 3, 8, 18, 41, 87, 184
OFFSET
1,3
COMMENTS
Construct a graph G with subsets of {1, 2, ..., n} as vertices. Vertices S and T (not necessarily distinct) 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.
EXAMPLE
For n = 3, the set family {{1, 2}, {2, 3}, {1, 2, 3}} is the largest because all other subsets are isolated vertices in G.
PROG
(Python) # See links.
CROSSREFS
Cf. A394221.
Sequence in context: A117080 A240135 A066425 * A026679 A371682 A191524
KEYWORD
nonn,more
AUTHOR
Yifan Xie, Apr 21 2026
STATUS
approved