OFFSET
0,3
COMMENTS
A Schröder path of semilength n is a lattice path starting from (0,0), ending at (2n,0), consisting only of steps U=(1,1) (up steps), D=(1,-1) (down steps) and H=(2,0) (level steps) and never going below the x-axis.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..703
Wikipedia, Schröder number
FORMULA
a(n) = A101282(2n,n).
a(n) = Sum_{k=0..n-1} (k+1)/(2*n-k)*C(2*n-k,n)*C(3*n-k,2*n+1) for n>=1, a(0) = 1.
a(n) ~ 3^(3*n + 5/2) / (50*Pi*n^2). - Vaclav Kotesovec, Jun 27 2025
EXAMPLE
a(0) = 1: the empty path.
a(1) = 1: UDUD.
a(2) = 11: HUDUDUD, UUDDUDUD, UHDUDUD, UDUUDDUD, UUDUDDUD, UDUHDUD, UDUDUUDD, UDUUDUDD, UUDUDUDD, UDUDUHD, UDUDUDH.
MAPLE
b:= proc(x, y, t, c) option remember; `if`(y<0 or y>x, 0,
`if`(x=0, `if`(c=0, 1, 0), b(x-1, y-1, 1, c+1)+
b(x-1, y+1, 0, c+1-4*t)+b(x-2, y, 0, c+2)))
end:
a:= n-> b(4*n, 0$3):
seq(a(n), n=0..19);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jun 24 2025
STATUS
approved
