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!)
A300442 Number of binary strict trees of weight n. 9
1, 1, 1, 2, 3, 6, 10, 23, 46, 108, 231, 561, 1285, 3139, 7348, 18265, 43907, 109887, 267582, 675866, 1669909, 4238462, 10555192, 26955062, 67706032, 173591181, 438555624, 1129088048, 2869732770, 7410059898, 18911818801, 48986728672, 125562853003, 326011708368 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
A binary strict tree of weight n > 0 is either a single node of weight n, or an ordered pair of binary strict trees with strictly decreasing weights summing to n.
LINKS
FORMULA
a(n) = 1 + Sum_{x + y = n, 0 < x < y < n} a(x) * a(y).
EXAMPLE
The a(5) = 6 binary strict trees: 5, (41), (32), ((31)1), ((21)2), (((21)1)1).
The a(6) = 10 binary strict trees:
6,
(51), (42),
((41)1), ((32)1), ((31)2),
(((31)1)1), (((21)2)1), (((21)1)2),
((((21)1)1)1).
MAPLE
a:= proc(n) option remember;
1+add(a(j)*a(n-j), j=1..(n-1)/2)
end:
seq(a(n), n=0..40); # Alois P. Heinz, Mar 06 2018
MATHEMATICA
k[n_]:=k[n]=1+Sum[Times@@k/@y, {y, Select[IntegerPartitions[n], Length[#]===2&&UnsameQ@@#&]}];
Array[k, 40]
(* Second program: *)
a[n_] := a[n] = 1 + Sum[a[j]*a[n - j], {j, 1, (n - 1)/2}];
a /@ Range[0, 40] (* Jean-François Alcover, May 13 2021, after Alois P. Heinz *)
PROG
(PARI) seq(n)={my(v=vector(n)); for(n=1, n, v[n] = 1 + sum(k=1, (n-1)\2, v[k]*v[n-k])); concat([1], v)} \\ Andrew Howroyd, Aug 25 2018
CROSSREFS
Sequence in context: A218210 A122381 A141034 * A152536 A185164 A124345
KEYWORD
nonn
AUTHOR
Gus Wiseman, Mar 05 2018
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 19 10:22 EDT 2024. Contains 372683 sequences. (Running on oeis4.)