OFFSET
0,3
COMMENTS
The total number of cells equals the total area under all symmetric Dyck paths.
Equivalently, total number of cells above all symmetric Dyck paths of semilength n in the fourth quadrant of the square grid.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..3305
FORMULA
EXAMPLE
For n = 3 there are three symmetric Dyck paths of semilength 3 in the first quadrant of the square grid as shown below:
_ _ _ _ _ _
|_ |_ |
|_ | |
| | |
.
The total number of cells under the symmetric Dyck paths is 6 + 8 + 9 = 23 as shown below:
_ _ _ _ _ _
|_|_ |_|_|_ |_|_|_|
|_|_|_ |_|_|_| |_|_|_|
|_|_|_| |_|_|_| |_|_|_|
6 8 9
.
So a(3) = 23.
MAPLE
b:= proc(x, y) option remember; `if`(y<0 or y>x, 0, `if`(x=0, [1, 0],
add((p-> p+[0, p[1]*(2*y+i)])(b(x-1, y+i)), i=[-1, 1])))
end:
a:= n-> (add(b(n, n-2*i), i=0..n/2)[2]+binomial(n, floor(n/2))*n^2)/2:
seq(a(n), n=0..30); # Alois P. Heinz, Apr 01 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Mar 27 2026
EXTENSIONS
Terms a(5) and beyond from Alois P. Heinz, Mar 27 2026
STATUS
approved
