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!)
A074092 Number of plane binary trees of size n+3 and contracted height n. 3
1, 2, 8, 40, 144, 448, 1280, 3456, 8960, 22528, 55296, 133120, 315392, 737280, 1703936, 3899392, 8847360, 19922944, 44564480, 99090432, 219152384, 482344960, 1056964608, 2306867200, 5016387584, 10871635968, 23488102400 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A073346(n+3, n).
a(0) = 1, a(1) = 2, a(n) = 2^(n-1)*(n+2)*(n-1) = (2^n)*(C(n, n-2)+C(n-1, n-2)) = 2^n * A000096(n-1).
a(n) = 6*a(n-1)-12*a(n-2)+8*a(n-3) for n>4. G.f.: (1-4*x+8*x^2+8*x^3-16*x^4)/(1-2*x)^3. [Colin Barker, Mar 21 2012]
For n>1, a(n) = (1/2) * Sum_{k=0..n+1} Sum_{i=0..n+1} (k-1) * C(n+1,i). - Wesley Ivan Hurt, Sep 20 2017
MAPLE
A074092 := n -> `if`((n < 2), n+1, 2^(n-1)*(n+2)*(n-1));
A074092v2 := n -> `if`((n < 2), n+1, (2^n)*(binomial(n, n-2)+binomial(n-1, n-2)));
MATHEMATICA
Table[If[n < 2, n + 1, 2^(n - 1)*(n + 2) (n - 1)], {n, 0, 26}] (* or *)
CoefficientList[Series[(1 - 4 x + 8 x^2 + 8 x^3 - 16 x^4)/(1 - 2 x)^3, {x, 0, 26}], x] (* Michael De Vlieger, Sep 22 2017 *)
LinearRecurrence[{6, -12, 8}, {1, 2, 8, 40, 144}, 30] (* Harvey P. Dale, Jun 20 2021 *)
PROG
(PARI) Vec((1-4*x+8*x^2+8*x^3-16*x^4)/(1-2*x)^3+O(x^99)) \\ Charles R Greathouse IV, Mar 21 2012
CROSSREFS
Sequence in context: A087971 A127919 A366478 * A003445 A181326 A220964
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Aug 19 2002
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 March 19 04:58 EDT 2024. Contains 370952 sequences. (Running on oeis4.)