login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A052303 Number of asymmetric Greg trees. 8

%I #17 Apr 28 2020 07:33:16

%S 1,1,0,0,0,0,1,4,12,42,137,452,1491,4994,16831,57408,197400,685008,

%T 2395310,8437830,29917709,106724174,382807427,1380058180,4998370015,

%U 18181067670,66393725289,243347195594,894959868983,3301849331598,12217869541117,45335177297876

%N Number of asymmetric Greg trees.

%C A Greg tree can be described as a tree with 2-colored nodes where only the black nodes are counted and the white nodes are of degree at least 3.

%H Alois P. Heinz, <a href="/A052303/b052303.txt">Table of n, a(n) for n = 0..1668</a>

%H <a href="/index/Tra#trees">Index entries for sequences related to trees</a>

%F G.f.: 1+B(x)-B(x)^2 where B(x) is g.f. of A052301.

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

%p add(binomial(g(i), j)*b(n-i*j, i-1), j=0..n/i)))

%p end:

%p g:= n-> `if`(n<1, 0, b(n-1$2)+b(n, n-1)) :

%p a:= n-> `if`(n=0, 1, g(n)-add(g(j)*g(n-j), j=0..n)):

%p seq(a(n), n=0..40); # _Alois P. Heinz_, Jun 22 2018

%t b[n_, i_] := b[n, i] = If[n == 0, 1, If[i < 1, 0, Sum[Binomial[g[i], j] b[n - i j, i - 1], {j, 0, n/i}]]];

%t g[n_] := If[n < 1, 0, b[n - 1, n - 1] + b[n, n - 1]];

%t a[n_] := If[n == 0, 1, g[n] - Sum[g[j] g[n - j], {j, 0, n}]];

%t a /@ Range[0, 40] (* _Jean-François Alcover_, Apr 28 2020, after _Alois P. Heinz_ *)

%Y Cf. A005263, A005264, A048159, A048160, A052300-A052302.

%K nonn

%O 0,8

%A _Christian G. Bower_, Nov 15 1999

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 07:54 EDT 2024. Contains 371922 sequences. (Running on oeis4.)