login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Number of Dyck paths of semilength n having exactly 5 (possibly overlapping) occurrences of the consecutive steps UDUUUDDDUD (with U=(1,1), D=(1,-1)).
2

%I #5 Jun 13 2014 16:43:21

%S 1,7,40,219,1161,6035,30816,154815,766711,3749225,18128129,86772929,

%T 411599785,1936434085,9042584447,41939926492,193310490160,

%U 885917766448,4038628790596,18320941855600,82734637234636,372039593944604,1666387342165538,7436328773819975

%N Number of Dyck paths of semilength n having exactly 5 (possibly overlapping) occurrences of the consecutive steps UDUUUDDDUD (with U=(1,1), D=(1,-1)).

%H Alois P. Heinz, <a href="/A243875/b243875.txt">Table of n, a(n) for n = 21..400</a>

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

%p series(b(x-1, y+1, [2, 2, 4, 5, 6, 2, 4, 2, 10, 2][t])+`if`(t=10,

%p z, 1)*b(x-1, y-1, [1, 3, 1, 3, 3, 7, 8, 9, 1, 3][t]), z, 6)))

%p end:

%p a:= n-> coeff(b(2*n, 0, 1), z, 5):

%p seq(a(n), n=21..50);

%Y Column k=5 of A243881.

%K nonn

%O 21,2

%A _Alois P. Heinz_, Jun 13 2014