A331505 Number of labeled graphs with n nodes and floor(n/2) edges.
1, 1, 3, 15, 45, 455, 1330, 20475, 58905, 1221759, 3478761, 90858768, 256851595, 8093990190, 22760723700, 840261910995, 2353351951665, 99615373765775, 278110855548955, 13278694407181203, 36976937738226486
Offset: 1
Examples
a(4) is 15 because for n = 4, floor(n/2) = 2, and there are two graphs with four points and two edges. See the figure below or the J. Riordan reference. The non-isomorphic graphs with four nodes and two edges along with the corresponding number of labeled graphs are as follows: . *--* * * | | | | | | * * * * 12 3 Pp(2) = A302112(2)/a(4) = 15/15 = 1. All the graphs with four nodes and two edges are acyclic.
References
- J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 109.
Links
- Washington Bomfim, Approximation of Pp(n)
- P. Flajolet, D. E. Knuth, and B. Pittel, The first cycles in an evolving graph, Discrete Mathematics, 75(1-3):167-215, 1989.
- Carlos R. Lucatero, Combinatorial Enumeration of Graphs.
Programs
-
PARI
C(x, y) = binomial(x, y); a(n) = C(C(n,2), n\2); A302112(n)={my(S=0, j); /* From Jon E. Schoenfield's formula in A302112. */ for(j = 0, n, S+=(-1/2)^j* C(n, j) * C(2*n-1, n+j-1) * (2*n)^(n-j) * (n+j)! ); (1/n!)*S }; /* end A302112(n) */ c1 = (2/3)^(1/3) * sqrt(Pi) / gamma(1/3); UpBoundP(n) = c1 / n^(1/6); /* Approximation for P(n) */ UpBoundPp(n) = exp(3/4) * UpBoundP(n); /* Approximation for Pp(n) */ Pp(n) = A302112(n)/a(2*n); Ratio(n) = UpBoundPp(n) / Pp(n);
Formula
a(n) = C( C(n,2), floor(n/2) ).
Comments