OFFSET
0,3
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,2).
FORMULA
a(n) = A007909(n+2).
G.f.: (1-x+2*x^2)/((1-2*x)*(1+x^2)).
PROG
(PARI) my(x='x+O('x^35)); Vec((1-x+2*x^2)/((1-2*x)*(1+x^2))) \\ Michel Marcus, Jun 28 2021
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Shanzhen Gao, May 12 2011
STATUS
approved