OFFSET
0,4
COMMENTS
Two Dyck paths of the same length are equivalent with respect to a given pattern if they have equal sets of occurrences of this pattern.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..4096
J.-L. Baril, A. Petrossian, Equivalence classes of Dyck paths modulo some statistics, 2014.
J.-L. Baril, A. Petrossian, Equivalence Classes of Motzkin Paths Modulo a Pattern of Length at Most Two, J. Int. Seq. 18 (2015) 15.7.1
K. Manes, A. Sapounakis, I. Tasoulas, P. Tsikouras, Equivalence classes of ballot paths modulo strings of length 2 and 3, arXiv:1510.01952 [math.CO], 2015.
Wikipedia, Counting lattice paths
MAPLE
b:= proc(x, y) option remember; `if`(y<0 or y>x, 0, `if`(x=0, 1,
`if`(y=0, b(x-2, y)+b(x-6, y+2), b(x-1, y-1))+b(x-5, y+1)))
end:
a:= n-> b(2*n, 0):
seq(a(n), n=0..42);
MATHEMATICA
b[x_, y_] := b[x, y] = If[y < 0 || y > x, 0, If[x == 0, 1, If[y == 0, b[x - 2, y] + b[x - 6, y + 2], b[x - 1, y - 1]] + b[x - 5, y + 1]]];
a[n_] := b[2n, 0];
Table[a[n], {n, 0, 42}] (* Jean-François Alcover, Aug 20 2018, from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Aug 02 2018
STATUS
approved