|
|
A190570
|
|
Number of n-step one-sided prudent walks, avoiding exactly two consecutive west steps and two consecutive east steps.
|
|
0
|
|
|
1, 3, 5, 13, 27, 63, 137, 309, 683, 1527, 3393, 7565, 16835, 37503, 83497, 185957, 414075, 922119, 2053393, 4572669, 10182643, 22675407, 50494905, 112445269, 250399915, 557606103, 1241711393, 2765119597, 6157538211, 13711985439
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+x-2*x^2+2*x^3)/(1-2*x-x^2+2*x^3-2*x^4).
|
|
PROG
|
(PARI) my(x='x+O('x^35)); Vec(x*(1+x-2*x^2+2*x^3)/(1-2*x-x^2+2*x^3-2*x^4)) \\ Michel Marcus, Jun 28 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,walk
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|