login
A384671
Expansion of (1-x^2) / (1-2*x-5*x^2+2*x^3).
3
1, 2, 8, 24, 84, 272, 916, 3024, 10084, 33456, 111284, 369680, 1228868, 4083568, 13572116, 45104336, 149902116, 498181680, 1655665268, 5502434704, 18286832388, 60774507760, 201978308052, 671255490128, 2230853504996, 7414027844528, 24639812233780
OFFSET
0,2
COMMENTS
Number of walks of length n starting at vertex 0 in the following graph:
1---2
/|\ /|
0 | X |
\|/ \|
4---3.
FORMULA
a(n) = A384673(n)-A384673(n-1). - R. J. Mathar, Jun 07 2025
EXAMPLE
a(2)=8 because we have the walks 0-1-0, 0-1-2, 0-1-3, 0-1-4, 0-4-0, 0-4-1, 0-4-2, 0-4-3.
MAPLE
a:= n-> (<<0|1|0|0|1>, <1|0|1|1|1>, <0|1|0|1|1>, <0|1|1|0|1>, <1|1|1|1|0>>^n. <<1, 1, 1, 1, 1>>)[1, 1]:
seq(a(n), n=0..32);
MATHEMATICA
CoefficientList[Series[(1-x^2) / (1-2*x-5*x^2+2*x^3), {x, 0, 32}], x]
PROG
(Magma) m:=35; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!( (1-x^2) / (1-2*x-5*x^2+2*x^3))); // Vincenzo Librandi, Oct 10 2025
CROSSREFS
Cf. A384672 (vertices 1 and 4), A384673 (vertices 2 and 3), A384646 (missing edge {2,4}).
Sequence in context: A034741 A063727 A085449 * A127362 A133443 A094038
KEYWORD
nonn,easy,walk
AUTHOR
Sean A. Irvine, Jun 05 2025
STATUS
approved