|
Search: id:A002026
|
|
|
| A002026 |
|
Generalized ballot numbers (first differences of Motzkin numbers). (Formerly M1416 N0554)
|
|
+0 14
|
|
| 0, 1, 2, 5, 12, 30, 76, 196, 512, 1353, 3610, 9713, 26324, 71799, 196938, 542895, 1503312, 4179603, 11662902, 32652735, 91695540, 258215664, 728997192, 2062967382, 5850674704, 16626415975, 47337954326
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
COMMENT
|
Number of ordered trees with n+1 edges, having root of degree 2 and nonroot nodes of outdegree at most 2.
Sequence without the initial 0 is the convolution of the sequence of Motzkin numbers (A001006) with itself.
Number of horizontal steps at level zero in all Motzkin paths of length n. Example: a(3)=5 because in the four Motzkin paths of length 3, (HHH), (H)UD, UD(H) and UHD, where H=(1,0), U=(1,1), D=(1,-1), we have alltogether five horizontal steps H at level zero (shown in parentheses).
Number of peaks at level 1 in all Motzkin paths of length n+1. Example: a(3)=5 because in the nine Motzkin paths of length 4, HHHH, HH(UD), H(UD)H, HUHD, (UD)HH, (UD)(UD), UHDH, UHHD, and UUDD (where H=(1,0), U=(1,1), D=(1,-1)), we have five peaks at level 1 (shown between parentheses).
a(n) = number of Motzkin paths of length n+1 that start with an up step. - David Callan (callan(AT)stat.wisc.edu), Jul 19 2004
|
|
REFERENCES
|
N. S. S. Gu, N. Y. Li and T. Mansour, 2-Binary trees: bijections and related issues, Discr. Math., 308 (2008), 1209-1221.
L. Carlitz, Solution of certain recurrences, SIAM J. Appl. Math., 17 (1969), 251-259.
R. Donaghey and L. W. Shapiro, Motzkin numbers, J. Combin. Theory, Series A, 23 (1977), 291-301.
|
|
FORMULA
|
Sum(b = 1 to (n+1)/2) [ n choose (2b-1) ][ 2b choose b ]/(b+1).
Number of (s(0), s(1), ..., s(n)) such that s(i) is a nonnegative integer, s(0) = 0 = s(n), s(1) = 1, |s(i) - s(i-1)| <= 1 for i >= 2, Also T(n, n), where T is the array defined in A026105.
a(n)=sum{k=0..n-1, sum{i=0..k, C(k, 2i)*A000108(i+1) }}. - Paul Barry (pbarry(AT)wit.ie), Jul 18 2003
G.f.=4z/[1-z+sqrt(1-2z-3z^2)]^2. - Emeric Deutsch (deutsch(AT)duke.poly.edu), Dec 27 2003.
a(n)=A005043(n+2)-A005043(n); - Paul Barry (pbarry(AT)wit.ie), Apr 17 2005
|
|
CROSSREFS
|
Cf. A001006, A026300, A026107.
A diagonal of triangle A020474.
Sequence in context: A051163 A051450 A038508 this_sequence A105695 A026938 A086622
Adjacent sequences: A002023 A002024 A002025 this_sequence A002027 A002028 A002029
|
|
KEYWORD
|
nonn,easy,nice
|
|
AUTHOR
|
njas
|
|
EXTENSIONS
|
Additional comments from Emeric Deutsch (deutsch(AT)duke.poly.edu), Dec 27 2003
|
|
|
Search completed in 0.002 seconds
|