%I #24 May 20 2023 15:11:49
%S 3,3,6,16,46,142,461,1542,5278,18417,65218,233816,846938,3094943,
%T 11395715,42237936,157465847,590075550,2221391912,8397223487,
%U 31861406058,121300625969,463233477550,1774034788166,6811612470692,26216538077715,101125406981562
%N Number of rooted identity trees with 3-colored leaves.
%H Alois P. Heinz, <a href="/A038076/b038076.txt">Table of n, a(n) for n = 1..600</a>
%H N. J. A. Sloane, <a href="/transforms.txt">Transforms</a>
%H <a href="/index/Ro#rooted">Index entries for sequences related to rooted trees</a>
%F Shifts left under Weigh transform.
%F a(n) ~ c * d^n / n^(3/2), where d = 4.0814589930714884560076189705..., c = 0.4583632659157592121544633778... . - _Vaclav Kotesovec_, Sep 06 2014
%F G.f. A(x) satisfies: A(x) = 2*x + x * exp( Sum_{k>=1} (-1)^(k+1) * A(x^k) / k ). - _Ilya Gutkovskiy_, May 19 2023
%p b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
%p add(binomial(a(i$2), j)*b(n-i*j, i-1), j=0..n/i)))
%p end:
%p a:= n-> `if`(n<2, 3*n, b(n-1, n-1)):
%p seq(a(n), n=1..35); # _Alois P. Heinz_, Aug 01 2013
%t b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, Sum[Binomial[a[i], j]*b[n - i*j, i-1], {j, 0, n/i}]]];
%t a[n_] := If[n<2, 3*n, b[n-1, n-1]];
%t Table[a[n], {n, 1, 35}] (* _Jean-François Alcover_, Mar 01 2016, after _Alois P. Heinz_ *)
%Y Cf. A004111, A038075.
%K nonn
%O 1,1
%A _Christian G. Bower_, Jan 04 1999