OFFSET
1,2
COMMENTS
Cf. A000891, which enumerates walks in the upper half-plane starting and finishing at the origin. See also A145600, A145602 and A145603. This sequence is the central column taken from triangle A145597, which enumerates walks in the upper half-plane starting at the origin and finishing on the horizontal line y = 2.
LINKS
Richard K. Guy, Catwalks, sandsteps and Pascal pyramids, J. Integer Sequences, Vol. 3 (2000), Article 00.1.6.
FORMULA
a(n) = (3/(2*n+1))*binomial(2*n+1,n+2)*binomial(2*n+1,n-1).
a(n) ~ 3 * 2^(4*n+1) / (Pi * n^2). - Amiram Eldar, Oct 08 2025
EXAMPLE
a(2) = 15: the 15 walks from (0,0) to (0,2) of four steps are: UUUD, UULR, UURL, UUDU, URUL, ULUR, URLU, ULRU,RUUL, LUUR, RLUU, LRUU, RULU, LURU and UDUU.
MAPLE
with(combinat):
a(n) = 3/(2*n+1)*binomial(2*n+1, n+2)*binomial(2*n+1, n-1);
seq(a(n), n = 1..19);
MATHEMATICA
a[n_] := 3 * Binomial[2*n+1, n+2] * Binomial[2*n+1, n-1] / (2*n+1); Array[a, 20] (* Amiram Eldar, Oct 08 2025 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Peter Bala, Oct 15 2008
STATUS
approved
