OFFSET
0,2
LINKS
Lauren K. Williams, Enumerating up-side self-avoiding walks on integer lattices, Electr. J. Combin. 3, 1996, #R31.
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,1).
FORMULA
G.f.: (1 + z^2 + z^3)/(1 - 2z + z^2 - z^3 - z^4).
EXAMPLE
a(3)=8 because we have UUU, UUR, URU, RUU, RUL, RRU, RUR, and URR, where U, L, and R denote up, left, and right steps, respectively.
MAPLE
g := (1+z^2+z^3)/(1-2*z+z^2-z^3-z^4): gser := series(g, z = 0, 43): seq(coeff(gser, z, n), n = 0 .. 35);
MATHEMATICA
LinearRecurrence[{2, -1, 1, 1}, {1, 2, 4, 8}, 40] (* Harvey P. Dale, Jan 11 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Mar 31 2010
EXTENSIONS
Definition corrected by Emeric Deutsch, Apr 01 2010
STATUS
approved