OFFSET
1,3
COMMENTS
The expected number of edges of a random graph is n*(n - 1)/4. [See the Cieslik reference.]
REFERENCES
J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 109.
LINKS
Dietmar Cieslik, Counting Networks.
Carlos R. Lucatero, Combinatorial Enumeration of Graphs.
FORMULA
a(n) = binomial(binomial(n,2), floor(n*(n-1)/4)).
EXAMPLE
a(4) is 20 because for n=4, floor(n*(n-1)/4) = 3, and there are A000717(4) = 3 graphs with four points and three edges. See figure below or J. Riordan reference.
The non-isomorphic graphs with four nodes and three edges along with the corresponding number of labeled graphs are as follows:
.
*--* *--* *
| / | |
|/ * | |
* *--* *--*--*
4 12 4
PROG
(PARI) a(n) = binomial(binomial(n, 2), n*(n-1)\4);
CROSSREFS
KEYWORD
nonn
AUTHOR
Washington Bomfim, Jan 18 2020
STATUS
approved