OFFSET
0,2
COMMENTS
Counts closed walks of length 2n at a vertex of the cyclic graph on 12 nodes C_12. - Herbert Kociemba, Jun 06 2004
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,-19,12).
FORMULA
G.f.: (1-2*x)*(1-4*x+x^2)/((1-x)*(1-3*x)*(1-4*x)).
a(n) = 0^n/6 + 1/3 + 3^n/3 + 4^n/6.
a(n) = 8*a(n-1) - 19*a(n-2) + 12*a(n-3). - Wesley Ivan Hurt, Jul 11 2023
MATHEMATICA
CoefficientList[Series[(1-2x)(1-4x+x^2)/((1-x)(1-3x)(1-4x)), {x, 0, 30}], x] (* Harvey P. Dale, Nov 26 2014 *)
PROG
(Magma) [0^n/6+1/3+3^n/3+4^n/6: n in [0..30]]; // Vincenzo Librandi, Aug 12 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Sep 02 2003
EXTENSIONS
Definition corrected by Herbert Kociemba, Jun 06 2004
STATUS
approved