login
Number of simple unlabeled graphs on n nodes with exactly 7 connected components that are trees or cycles.
3

%I #8 Dec 04 2014 06:57:25

%S 1,1,3,6,13,26,56,115,246,530,1166,2613,5982,13940,33073,79760,195109,

%T 483615,1212485,3071358,7850690,20231286,52513864,137202595,360578812,

%U 952705531,2529454122,6745724961,18063628118,48553319703,130962595786,354390168855

%N Number of simple unlabeled graphs on n nodes with exactly 7 connected components that are trees or cycles.

%H Alois P. Heinz, <a href="/A215987/b215987.txt">Table of n, a(n) for n = 7..650</a>

%e a(9) = 3: .o-o o o o. .o-o o o o. .o o o o o.

%e .|/ . .| . .| | .

%e .o o o o . .o o o o . .o o o o .

%p with(numtheory):

%p b:= proc(n) option remember; local d, j; `if`(n<=1, n,

%p (add(add(d*b(d), d=divisors(j)) *b(n-j), j=1..n-1))/(n-1))

%p end:

%p g:= proc(n) option remember; local k; `if`(n>2, 1, 0)+ b(n)-

%p (add(b(k)*b(n-k), k=0..n) -`if`(irem(n, 2)=0, b(n/2), 0))/2

%p end:

%p p:= proc(n, i, t) option remember; `if`(n<t, 0, `if`(n=t, 1,

%p `if`(min(i, t)<1, 0, add(binomial(g(i)+j-1, j)*

%p p(n-i*j, i-1, t-j), j=0..min(n/i,t)))))

%p end:

%p a:= n-> p(n, n, 7):

%p seq(a(n), n=7..50);

%Y Column k=7 of A215977.

%Y The labeled version is A215857.

%K nonn

%O 7,3

%A _Alois P. Heinz_, Aug 29 2012