OFFSET
0,3
COMMENTS
The span of a graph is the union of its edges.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..50
FORMULA
EXAMPLE
The a(2) = 5 edge-sets:
{{1,2}}
{{1,1},{1,2}}
{{1,1},{2,2}}
{{1,2},{2,2}}
{{1,1},{1,2},{2,2}}
MATHEMATICA
Table[Sum[(-1)^(n-k)*Binomial[n, k]*2^Binomial[k+1, 2], {k, 0, n}], {n, 10}]
(* second program *)
Table[Select[Expand[Product[1+x[i]*x[j], {j, n}, {i, j}]], And@@Table[!FreeQ[#, x[i]], {i, n}]&]/.x[_]->1, {n, 7}]
PROG
(PARI) a(n) = sum(k=0, n, (-1)^(n-k)*binomial(n, k)*2^binomial(k+1, 2)) \\ Andrew Howroyd, Jan 06 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 22 2018
STATUS
approved