cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A143953 Triangle read by rows: T(n,k) is the number of Dyck paths of semilength n having k peaks in their peak plateaux (0<=k<=n-1). A peak plateau is a run of consecutive peaks that is preceded by an upstep and followed by a down step; a peak consists of an upstep followed by a downstep.

Original entry on oeis.org

1, 1, 1, 1, 1, 3, 1, 1, 8, 4, 1, 1, 21, 14, 5, 1, 1, 55, 48, 21, 6, 1, 1, 144, 162, 85, 29, 7, 1, 1, 377, 537, 335, 133, 38, 8, 1, 1, 987, 1748, 1286, 589, 193, 48, 9, 1, 1, 2584, 5594, 4815, 2526, 940, 266, 59, 10, 1, 1, 6765, 17629, 17619, 10518, 4413, 1405, 353, 71, 11, 1
Offset: 0

Views

Author

Emeric Deutsch, Oct 10 2008

Keywords

Comments

Row n has n terms (n>=1).
Row sums are the Catalan numbers (A000108).
For the statistic "number of peak plateaux", see A143952.

Examples

			T(4,2)=4 because we have UDU(UDUD)D, U(UDUD)DUD, U(UD)DU(UD)D and UU(UDUD)DD (the peaks in the peak plateaux are shown between parentheses).
The triangle starts:
  1;
  1;
  1,1;
  1,3,1;
  1,8,4,1;
  1,21,14,5,1;
  1,55,48,21,6,1;
		

Crossrefs

Programs

  • Maple
    C:=proc(z) options operator, arrow: (1/2-(1/2)*sqrt(1-4*z))/z end proc: G:=(1-z)*(1-t*z)*C(z*(1-z)^2*(1-t*z)^2/(1-z+z^2-t*z)^2)/(1-z+z^2-t*z): Gser:= simplify(series(G,z=0,15)): for n from 0 to 11 do P[n]:=sort(coeff(Gser,z,n)) end do: 1; for n to 11 do seq(coeff(P[n],t,j),j=0..n-1) end do; # yields sequence in triangular form

Formula

T(n,1) = A001906(n-1) = Fibonacci(2*n-2).
Sum_{k=0..n-1} k*T(n,k) = A143954(n).
The g.f. G=G(t,z) satisfies z(1-z)(1-tz)G^2-(1-z+z^2-tz)G+(1-z)(1-tz) = 0 (for the explicit form of G see the Maple program).
The trivariate g.f. g=g(x,y,z) of Dyck paths with respect to number of peak plateaux, number of peaks in the peak plateaux and semilength, marked, by x, y and z, respectively satisfies g=1+zg[g+xyz/(1-yz)-z/(1-z)].

A143954 Number of peaks in the peak plateaux of all Dyck paths of semilength n.

Original entry on oeis.org

0, 0, 1, 5, 19, 68, 243, 880, 3233, 12021, 45119, 170595, 648787, 2479057, 9509627, 36598497, 141246127, 546433952, 2118424887, 8227983472, 32010173957, 124715628852, 486550020967, 1900433894942, 7431033132717, 29085434212042
Offset: 0

Views

Author

Emeric Deutsch, Oct 10 2008

Keywords

Comments

A peak plateau is a run of consecutive peaks that is preceded by an upstep and followed by a down step; a peak consists of an upstep followed by a downstep.

Examples

			a(3)=5 because in the peak plateaux of the Dyck paths UDUDUD, UD(UUDD), (UUDD)UD, (UUDUDD) and U(UUDD)D, shown between parentheses, we have 0 + 1 + 1 + 2 + 1 = 5 peaks.
		

Crossrefs

Programs

  • Maple
    C:=((1-sqrt(1-4*z))*1/2)/z: G:=z^2*C/((1-z)^2*sqrt(1-4*z)): Gser:=series(G,z= 0,30): seq(coeff(Gser,z,n),n=0..25);
  • Mathematica
    CoefficientList[Series[x^2*((1-Sqrt[1-4*x])*1/2)/x/((1-x)^2*Sqrt[1-4*x]), {x, 0, 20}], x] (* Vaclav Kotesovec, Mar 20 2014 *)
  • PARI
    x='x+O('x^50); concat([0,0], Vec(x*(1-sqrt(1-4*x))/(2*(1-x)^2*sqrt(1-4*x)))) \\ G. C. Greubel, Mar 22 2017

Formula

a(n) = Sum_{k=0..n-1} k*A143953(n,k).
G.f.: z^2*C/[(1-z)^2*sqrt(1-4z)], where C = [1-sqrt(1-4z)]/(2z) is the Catalan function.
a(n) ~ 2^(2*n+1)/(9*sqrt(Pi*n)). - Vaclav Kotesovec, Mar 20 2014
a(n) = Sum_{k=1..n-1} A079309(k). - Doug Bell, Jun 23 2015
Conjecture: (-n+1)*a(n) +2*(3*n-4)*a(n-1) +(-9*n+13)*a(n-2) +2*(2*n-3)*a(n-3)=0. - R. J. Mathar, Jun 16 2016
Showing 1-2 of 2 results.