OFFSET
1,4
COMMENTS
Equivalently a(n) is the number of labeled simple graphs on n nodes having n-1 edges that have at least two connected components.
Evidently almost all such graphs are disconnected.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..370
FORMULA
EXAMPLE
a(4) = 4 because there are 20 labeled simple graphs on four nodes with three edges but 16 of these are connected i.e. they are trees.
MATHEMATICA
Table[Binomial[Binomial[n, 2], n-1]-n^(n-2), {n, 1, 20}]
PROG
(PARI) for(n=1, 20, print1(binomial(binomial(n, 2), n-1) - n^(n-2), ", ")) \\ G. C. Greubel, Jan 14 2018
(Magma) [Binomial(Binomial(n, 2), n-1) - n^(n-2): n in [1..20]]; // G. C. Greubel, Jan 14 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Geoffrey Critzer, Apr 28 2011
STATUS
approved