A129167 Number of base pyramids in all skew Dyck paths of semilength n.
0, 1, 3, 9, 30, 109, 420, 1685, 6960, 29391, 126291, 550359, 2426502, 10803801, 48507843, 219377949, 998436792, 4569488371, 21016589073, 97090411019, 450314942682, 2096122733211, 9788916220518, 45850711498859, 215348942668680, 1013979873542689, 4785437476592805, 22633143884165985, 107258646298581390
Offset: 0
Keywords
Examples
a(2)=3 because in the paths (UD)(UD), (UUDD) and UUDL we have altogether 3 base pyramids (shown between parentheses).
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..200
- E. Deutsch, E. Munarini, S. Rinaldi, Skew Dyck paths, J. Stat. Plann. Infer. 140 (8) (2010) 2191-2203
Programs
-
Maple
G:=(1-3*z-sqrt(1-6*z+5*z^2))/z/(3-3*z-sqrt(1-6*z+5*z^2)): Gser:=series(G,z=0,30): seq(coeff(Gser,z,n),n=0..27);
-
Mathematica
CoefficientList[Series[(1-3*x-Sqrt[1-6*x+5*x^2])/(x*(3-3*x-Sqrt[1-6*x+5*x^2])), {x, 0, 20}], x] (* Vaclav Kotesovec, Oct 20 2012 *)
-
PARI
z='z+O('z^66); concat([0], Vec((1-3*z-sqrt(1-6*z+5*z^2))/z/(3-3*z-sqrt(1-6*z+5*z^2)))) \\ Joerg Arndt, Aug 27 2014
Formula
a(n) = Sum_{k=0..n} k*A129165(n,k).
G.f.: (1 - 3*z - sqrt(1 - 6*z + 5*z^2))/(z*(3 - 3*z - sqrt(1 - 6*z + 5*z^2))).
Recurrence: 2*(n+1)*a(n) = (13*n-3)*a(n-1) - 4*(4*n-3)*a(n-2) + 5*(n-1)*a(n-3) . - Vaclav Kotesovec, Oct 20 2012
a(n) ~ 5^(n+5/2)/(72*sqrt(Pi)*n^(3/2)) . - Vaclav Kotesovec, Oct 20 2012
Comments