OFFSET
0,5
FORMULA
G.f.: (1-x^3-sqrt((1-x^3)*(1-4*x^2-x^3)))/(2*x^2).
EXAMPLE
For n=6 we have 5 paths: UDUDUD, UUDDUD, UDUUDD, UUUDDD and UUDUDD
MATHEMATICA
CoefficientList[Series[(1-x^3-Sqrt[(1-x^3)*(1-4*x^2-x^3)])/(2*x^2), {x, 0, 20}], x] (* Vaclav Kotesovec, Apr 27 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
José Luis Ramírez Ramírez, Apr 27 2015
STATUS
approved