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!)
A358590 Number of square ordered rooted trees with n nodes. 18
1, 0, 1, 0, 6, 5, 36, 84, 309, 890, 3163, 9835, 32979, 108252, 360696, 1192410, 3984552, 13276769, 44371368, 148402665, 497072593, 1665557619, 5586863093, 18750662066, 62968243731, 211565969511, 711187790166, 2391640404772, 8045964959333, 27077856222546 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
We say that a tree is square if it has the same height as number of leaves.
LINKS
EXAMPLE
The a(1) = 1 through a(6) = 5 ordered trees:
o . (oo) . ((o)oo) ((o)(o)o)
((oo)o) ((o)(oo))
((ooo)) ((o)o(o))
(o(o)o) ((oo)(o))
(o(oo)) (o(o)(o))
(oo(o))
MATHEMATICA
aot[n_]:=If[n==1, {{}}, Join@@Table[Tuples[aot/@c], {c, Join@@Permutations/@IntegerPartitions[n-1]}]];
Table[Length[Select[aot[n], Count[#, {}, {0, Infinity}]==Depth[#]-1&]], {n, 1, 10}]
PROG
(PARI) \\ R(n, f) enumerates trees by height(h), nodes(x) and leaves(y).
R(n, f) = {my(A=O(x*x^n), Z=0); for(h=1, n, my(p = A); A = x*(y - 1 + 1/(1 - A + O(x^n))); Z += f(h, A-p)); Z}
seq(n) = {Vec(R(n, (h, p)->polcoef(p, h, y)), -n)} \\ Andrew Howroyd, Jan 01 2023
CROSSREFS
For internals instead of height we have A000891, unordered A185650 aerated.
For internals instead of leaves we have A358588, unordered A358587.
The unordered version is A358589, ranked by A358577.
A000108 counts ordered rooted trees, unordered A000081.
A001263 counts ordered rooted trees by nodes and leaves, unordered A055277.
A080936 counts ordered rooted trees by nodes and height, unordered A034781.
A090181 counts ordered rooted trees by nodes and internals, unord. A358575.
Sequence in context: A283980 A288211 A038259 * A302750 A268000 A223529
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 25 2022
EXTENSIONS
Terms a(16) and beyond from Andrew Howroyd, Jan 01 2023
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 13 20:33 EDT 2024. Contains 372522 sequences. (Running on oeis4.)