OFFSET
1,2
LINKS
S. Gao and H. Niederhausen, Sequences Arising From Prudent Self-Avoiding Walks, 2010.
Index entries for linear recurrences with constant coefficients, signature (2,1,0,-2,2).
FORMULA
G.f.: x*(1+x-2*x^3+2*x^4)/(1-2*x-x^2+2*x^4-2*x^5).
MATHEMATICA
CoefficientList[Series[x (1+x-2x^3+2x^4)/(1-2x-x^2+2x^4-2x^5), {x, 0, 30}], x] (* or *) LinearRecurrence[{2, 1, 0, -2, 2}, {1, 3, 7, 15, 37}, 30] (* Harvey P. Dale, Oct 20 2024 *)
PROG
(PARI) my(x='x+O('x^35)); Vec(x*(1+x-2*x^3+2*x^4)/(1-2*x-x^2+2*x^4-2*x^5)) \\ Michel Marcus, Jun 28 2021
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Shanzhen Gao, May 12 2011
STATUS
approved