OFFSET
0,5
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = Sum_{k>=0} k*A191785(n,k).
G.f.: (1-6*z^2-z^3+8*z^4+4*z^5-(1-4*z^2-z^3)*sqrt(1-4*z^2))/(2*z*(1+2*z)*(1-2*z)^2).
a(n) ~ 2^(n-5/2)*sqrt(n)/sqrt(Pi) * (1 + 3*sqrt(Pi)/sqrt(2*n)). - Vaclav Kotesovec, Mar 21 2014
D-finite with recurrence +(n+1)*(n^3-3*n^2-62*n+192)*a(n) -2*(n^4-2*n^3-81*n^2+186*n+192)*a(n-1) -4*(n^4-3*n^3-49*n^2+267*n-384)*a(n-2) +8*(n-3)*(n^3-65*n+128)*a(n-3)=0. - R. J. Mathar, Jun 14 2016
EXAMPLE
a(4)=3 because in UDUD, UDUU, UUDD, UUDU, (UUU)D, and (U[UU)U] we have a total of 0 + 0 + 0 + 0 +1 + 2 = 3 triple-rises (shown between parentheses).
MAPLE
G := ((1-6*z^2-z^3+8*z^4+4*z^5-(1-4*z^2-z^3)*sqrt(1-4*z^2))*1/2)/(z*(1+2*z)*(1-2*z)^2): Gser := series(G, z = 0, 40): seq(coeff(Gser, z, n), n = 0 .. 35);
MATHEMATICA
CoefficientList[Series[((1-6*x^2-x^3+8*x^4+4*x^5-(1-4*x^2-x^3)*Sqrt[1-4*x^2])*1/2)/(x*(1+2*x)*(1-2*x)^2), {x, 0, 20}], x] (* Vaclav Kotesovec, Mar 21 2014 *)
PROG
(PARI) z='z+O('z^50); concat([0, 0, 0], Vec((1-6*z^2-z^3+8*z^4+4*z^5-(1-4*z^2-z^3)*sqrt(1-4*z^2))/(2*z*(1+2*z)*(1-2*z)^2))) \\ G. C. Greubel, Mar 27 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Jun 18 2011
STATUS
approved