login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A036662 Shapes of height-balanced AVL trees of height at most 5 with n nodes. 3
0, 1, 1, 2, 1, 4, 6, 4, 17, 32, 44, 60, 70, 184, 476, 872, 1553, 2720, 4288, 6312, 9004, 11992, 14372, 15400, 14630, 11968, 8104, 4376, 1820, 560, 120, 16, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

REFERENCES

F. Bergeron, G. Labelle and P. Leroux, Combinatorial Species and Tree-Like Structures, Camb. 1998, p. 239, Eq 79, A_5.

LINKS

Table of n, a(n) for n=0..32.

R. C. Richards, Shape distribution of height-balanced trees, Info. Proc. Lett., 17 (1983), 17-20.

Index entries for sequences related to rooted trees

FORMULA

a(n) = Sum_{h=0..5} A143897(h,n). - Alois P. Heinz, Mar 17 2013

MAPLE

a:= proc(n) local B, z; B:= proc(x, y, d) if d>=1 then x+B(x^2+2*x*y, x, d-1) else x fi end; coeff(B(z, 0, 5), z, n) end: seq(a(n), n=0..32); # Alois P. Heinz, Aug 27 2008

MATHEMATICA

a[n_] := Module[{B, z}, B[x_, y_, d_] := If[d >= 1, x+B[x^2+2*x*y, x, d-1], x];  Coefficient[B[z, 0, 5], z, n]]; Table[a[n], {n, 0, 32}] (* Jean-Fran├žois Alcover, Feb 24 2015, after Alois P. Heinz *)

CROSSREFS

Cf. A006265, A143897.

Sequence in context: A217299 A333340 A217300 * A134306 A006265 A131452

Adjacent sequences:  A036659 A036660 A036661 * A036663 A036664 A036665

KEYWORD

nonn,fini,full

AUTHOR

N. J. A. Sloane.

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 21 00:14 EDT 2021. Contains 347596 sequences. (Running on oeis4.)