The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A151377 Number of walks within N^2 (the first quadrant of Z^2) starting at (0,0), ending on the vertical axis and consisting of n steps taken from {(-1, 0), (0, -1), (1, 1)} 0
 1, 0, 1, 2, 2, 8, 21, 30, 110, 304, 522, 1828, 5188, 9904, 33805, 97398, 199382, 669152, 1946558, 4187868, 13885724, 40660272, 90804738, 298319340, 877698252, 2018087328, 6581773876, 19433552840, 45742887816, 148299461600, 439078448189, 1053631252646, 3398943033446, 10085329191360, 24595733167734 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,4 COMMENTS Number of Motzkin n-paths in which the partial counts of flat steps do not exceed the corresponding partial counts of up steps. Bijection: substitute the steps for directions U=NE, F=S and D=W; then the rules are the same: F<=U, D<=U, and D=U at end. David Scambler, Aug 02 2012 LINKS M. Bousquet-MÃ©lou and M. Mishna, 2008. Walks with small steps in the quarter plane, ArXiv 0810.4387. EXAMPLE a(3)=2: Motzkin 3-paths are UFD and UDF; the paths FFF and FUD violate the condition at the first step. MATHEMATICA aux[i_Integer, j_Integer, n_Integer] := Which[Min[i, j, n] < 0 || Max[i, j] > n, 0, n == 0, KroneckerDelta[i, j, n], True, aux[i, j, n] = aux[-1 + i, -1 + j, -1 + n] + aux[i, 1 + j, -1 + n] + aux[1 + i, j, -1 + n]]; Table[Sum[aux[0, k, n], {k, 0, n}], {n, 0, 25}] CROSSREFS Sequence in context: A137774 A167532 A208235 * A151407 A130102 A151384 Adjacent sequences:  A151374 A151375 A151376 * A151378 A151379 A151380 KEYWORD nonn,walk AUTHOR Manuel Kauers, Nov 18 2008 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified July 27 14:47 EDT 2021. Contains 346307 sequences. (Running on oeis4.)