OFFSET
0,4
FORMULA
a(n) = Sum_{i=0..n-2} binomial(n,i) * (2^binomial(n-i,2) - 1).
EXAMPLE
a(2) = 1: {{1,2}}.
a(3) = 10: {{1,2}}, {{1,3}}, {{2,3}}, {{1,2},{3}}, {{1,3},{2}}, {{2,3},{1}}, {{1,2},{1,3}}, {{1,2},{2,3}}, {{1,3},{2,3}}, {{1,2},{1,3},{2,3}}.
PROG
(Python)
from math import comb
def A379706(n): return sum(comb(n, i)*(2**comb(n-i, 2) - 1) for i in range(n-1))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Tyler Rascoe, Dec 30 2024
STATUS
approved