OFFSET
0,3
COMMENTS
A skew Dyck path is a path in the first quadrant which begins at the origin, ends on the x-axis, consists of steps U=(1,1)(up), D=(1,-1)(down) and L=(-1,-1)(left) so that up and left steps do not overlap. The length of the path is defined to be the number of its steps. A primitive non-Dyck factor is a subpath of the form UPD, P being a skew Dyck path with at least one L step, or of the form UPL, P being any nonempty skew Dyck path.
LINKS
E. Deutsch, E. Munarini, S. Rinaldi, Skew Dyck paths, J. Stat. Plann. Infer. 140 (8) (2010) 2192-2203
FORMULA
G.f.: G(t,z) = [1+tz(g-1)]/[1-tz(g-C)-zC], where g=1+zg^2+z(g-1) = [1-z-sqrt(1- 6z+5z^2)]/(2z) and C=1+zC^2=[1-sqrt(1-4z)]/(2z) is the Catalan function.
Row n has 1+floor((n+1)/3) terms (n>=1).
Row sums yield A002212.
T(n,0) = binomial(2*n,n)/(n+1) = A000108(n) (the Catalan numbers).
Sum_{k>=0} k*T(n,k) = A129158(n).
EXAMPLE
T(3,1) = 5 because we have UD(UUDL), (UUUDLD), (UUDUDL), (UUUDDL) and (UUUDLL);
T(5,2) = 1 because we have (UUUDLD)(UUDL) (the primitive non-Dyck factors are shown between parentheses).
Triangle starts:
1;
1;
2, 1;
5, 5;
14, 22;
42, 94, 1;
132, 400, 11;
MAPLE
G:=(2+t-3*t*z-t*sqrt(1-6*z+5*z^2))/(1+t*z+(1-t)*sqrt(1-4*z)+t*sqrt(1-6*z+5*z^2)):
Gser:=simplify(series(G, z=0, 18)):
for n from 0 to 15 do P[n]:=sort(coeff(Gser, z, n)) od:
for n from 0 to 15 do seq(coeff(P[n], t, j), j=0..floor((n+1)/3)) od;
# yields sequence in triangular form
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Emeric Deutsch, Apr 02 2007
STATUS
approved