%I M0325 #36 Dec 16 2021 22:15:45
%S 1,1,1,1,2,2,4,6,10,17,29,51,89,159,284,512,930,1692,3101,5698,10515,
%T 19464,36143,67296,125622,235050,440756,828142,1558955,2939761,
%U 5552744,10504222,19899760,37750091,71704061,136361602,259618770,494821629,944074665
%N Number of planted identity trees where non-root, non-leaf nodes an even distance from root are of degree 2.
%D N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H Alois P. Heinz, <a href="/A007560/b007560.txt">Table of n, a(n) for n = 1..1000</a>
%H M. Bernstein and N. J. A. Sloane, <a href="http://arXiv.org/abs/math.CO/0205301">Some canonical sequences of integers</a>, Linear Alg. Applications, 226-228 (1995), 57-72; erratum 320 (2000), 210. [Link to arXiv version]
%H M. Bernstein and N. J. A. Sloane, <a href="/A003633/a003633_1.pdf">Some canonical sequences of integers</a>, Linear Alg. Applications, 226-228 (1995), 57-72; erratum 320 (2000), 210. [Link to Lin. Alg. Applic. version together with omitted figures]
%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 2 places left under weigh transform.
%F a(n) ~ c * d^n / n^(3/2), d = 1.983229991815043367273184141..., c = 0.5857451140002020594085469... . - _Vaclav Kotesovec_, Aug 25 2014
%F G.f.: x + x^2 * Product_{n>=1} (1 + x^n)^a(n). - _Ilya Gutkovskiy_, May 09 2019
%p b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
%p add(binomial(a(i), j)*b(n-i*j, i-1), j=0..n/i)))
%p end:
%p a:= n-> `if`(n<2, n, b(n-2, n-2)):
%p seq(a(n), n=1..50); # _Alois P. Heinz_, May 19 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}]]]; a[n_] := If[n<2, n, b[n-2, n-2]]; Table[a[n], {n, 1, 40}] (* _Jean-François Alcover_, Jan 27 2014, after _Alois P. Heinz_ *)
%Y Cf. A007562.
%Y Column k=2 of A316074.
%K nonn,nice,eigen
%O 1,5
%A _N. J. A. Sloane_
%E Better description from _Christian G. Bower_, May 15 1998