login
Number T(n,k) of Dyck paths of semilength n having exactly k (possibly overlapping) occurrences of the consecutive steps UDUUDU (with U=(1,1), D=(1,-1)); triangle T(n,k), n>=0, 0<=k<=max(0,floor(n/2)-1), read by rows.
13

%I #21 Mar 27 2021 15:15:05

%S 1,1,2,5,13,1,37,5,112,19,1,352,70,7,1136,259,34,1,3742,962,149,9,

%T 12529,3585,627,54,1,42513,13399,2584,279,11,145868,50201,10529,1334,

%U 79,1,505234,188481,42606,6092,474,13,1764157,709001,171563,27048,2561,109,1

%N Number T(n,k) of Dyck paths of semilength n having exactly k (possibly overlapping) occurrences of the consecutive steps UDUUDU (with U=(1,1), D=(1,-1)); triangle T(n,k), n>=0, 0<=k<=max(0,floor(n/2)-1), read by rows.

%C Conjecture: Generally, column k is asymptotic to c(k) * d^n * n^(k-3/2), where d = 3.8821590268628506747194368909643384... is the root of the equation d^8 - 2*d^7 - 10*d^6 + 12*d^5 - 5*d^4 - 2*d^3 - 5*d^2 - 8*d - 3 = 0, and c(k) are specific constants (independent on n). - _Vaclav Kotesovec_, Jun 05 2014

%H Alois P. Heinz, <a href="/A243366/b243366.txt">Rows n = 0..200, flattened</a>

%e T(4,1) = 1: UDUUDUDD.

%e T(5,1) = 5: UDUDUUDUDD, UDUUDUDDUD, UDUUDUDUDD, UDUUDUUDDD, UUDUUDUDDD.

%e T(6,1) = 19: UDUDUDUUDUDD, UDUDUUDUDDUD, UDUDUUDUDUDD, UDUDUUDUUDDD, UDUUDUDDUDUD, UDUUDUDDUUDD, UDUUDUDUDDUD, UDUUDUDUDUDD, UDUUDUDUUDDD, UDUUDUUDDDUD, UDUUDUUDDUDD, UDUUDUUUDDDD, UUDDUDUUDUDD, UUDUDUUDUDDD, UUDUUDUDDDUD, UUDUUDUDDUDD, UUDUUDUDUDDD, UUDUUDUUDDDD, UUUDUUDUDDDD.

%e T(6,2) = 1: UDUUDUUDUDDD.

%e T(7,2) = 7: UDUDUUDUUDUDDD, UDUUDUDUUDUDDD, UDUUDUUDUDDDUD, UDUUDUUDUDDUDD, UDUUDUUDUDUDDD, UDUUDUUDUUDDDD, UUDUUDUUDUDDDD.

%e T(8,3) = 1: UDUUDUUDUUDUDDDD.

%e Triangle T(n,k) begins:

%e : 0 : 1;

%e : 1 : 1;

%e : 2 : 2;

%e : 3 : 5;

%e : 4 : 13, 1;

%e : 5 : 37, 5;

%e : 6 : 112, 19, 1;

%e : 7 : 352, 70, 7;

%e : 8 : 1136, 259, 34, 1;

%e : 9 : 3742, 962, 149, 9;

%e : 10 : 12529, 3585, 627, 54, 1;

%p b:= proc(x, y, t) option remember; `if`(y<0 or y>x, 0,

%p `if`(x=0, 1, expand(b(x-1, y+1, [2, 2, 4, 5, 2, 4][t])*

%p `if`(t=6, z, 1) +b(x-1, y-1, [1, 3, 1, 3, 6, 1][t]))))

%p end:

%p T:= n-> (p-> seq(coeff(p, z, i), i=0..degree(p)))(b(2*n, 0, 1)):

%p seq(T(n), n=0..20);

%t b[x_, y_, t_] := b[x, y, t] = If[y<0 || y>x, 0, If[x == 0, 1, Expand[b[x-1, y+1, {2, 2, 4, 5, 2, 4}[[t]]]*If[t == 6, z, 1] + b[x-1, y-1, {1, 3, 1, 3, 6, 1}[[t]]]]]]; T[n_] := Function[{p}, Table[Coefficient[p, z, i], {i, 0, Exponent[p, z]}]][b[2*n, 0, 1]]; Table[T[n], {n, 0, 20}] // Flatten (* _Jean-François Alcover_, Feb 05 2015, after _Alois P. Heinz_ *)

%Y Column k=0-10 give: A243412, A243413, A243414, A243415, A243416, A243417, A243418, A243419, A243420, A243421, A243422.

%Y Row sums give A000108.

%Y T(n,floor(n/2)-1) gives A093178(n) for n>3.

%Y T(45,k) = A243752(45,k).

%Y T(n,0) = A243753(n,45).

%K nonn,tabf

%O 0,3

%A _Alois P. Heinz_, Jun 03 2014