The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A272371 Maximal balanced binary trees in the Tamari lattices. 2
1, 1, 1, 1, 2, 2, 2, 4, 6, 9, 11, 13, 22, 38, 60, 89, 128, 183, 256, 353, 512, 805, 1336, 2221, 3594, 5665, 8774, 13433, 20359, 30550, 45437, 67086, 98491, 144492, 213876, 322912, 500320, 793981, 1280684, 2080743, 3379956, 5462816, 8763837, 13948663, 22041664, 34622880, 54126792, 84292070, 130838126 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
a(n) is the number of binary trees T with n internal nodes such that T is balanced (also called AVL tree) and there is no binary tree S greater than T for the Tamari order such that S is balanced.
LINKS
S. Giraudo, Intervals of balanced binary trees in the Tamari lattice, arXiv preprint arXiv:1107.3472 [math.CO], 2011.
S. Giraudo, Intervals of balanced binary trees in the Tamari lattice, Theoretical Computer Science, 420, 1--27, 2012.
FORMULA
G.f.: A(x) = B(x, 0, 0) where B(x, y, z) satisfies B(x, y, z) = x + B(x^2 + x*y + y*z, x, x*y).
MATHEMATICA
m = 49; R = O[x]^(m+1);
B[x_, y_, z_, k_:0] = If[k >= m, x, x + R + B[x^2 + x y + y z + R, x + R, x y + R, k + 1] // Normal];
CoefficientList[B[x, 0, 0], x] // Rest (* Jean-François Alcover, Dec 16 2018, from Joerg Arndt's PARI code *)
PROG
(PARI)
N = 66; R = O('x^(N+1)); x = 'x+R;
B(x, y, z, k=0) = if( k>=N, x, x + R + B(x^2 + x*y + y*z + R, x + R, x*y + R, k+1) );
Vec(B(x, 0, 0)) \\ Joerg Arndt, May 01 2016
CROSSREFS
Sequence in context: A241576 A306749 A338286 * A191651 A010558 A365717
KEYWORD
nonn
AUTHOR
Samuele Giraudo, Apr 28 2016
EXTENSIONS
Terms a(35) and beyond from Joerg Arndt, May 01 2016
STATUS
approved

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 May 20 14:08 EDT 2024. Contains 372717 sequences. (Running on oeis4.)