OFFSET
0,3
COMMENTS
In general, a(n,m) = (2^n/m)*Sum_{k=0..m-1} cos(2*Pi*k/m)^n gives the number of closed walks of length n at a vertex of the cyclic graph on m nodes C_m.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,5,-4,-5,2).
FORMULA
a(n) = (2^n/9)*Sum_{k=0..8} cos(2*Pi*k/9)^n.
G.f.: -(x-1)*(x^3+3*x^2-1)/((2*x-1)*(x+1)*(x^3-3*x^2+1)). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 11 2009
9*a(n) = 2*(-1)^n +2^n +6*(-1)^n*A188048(n). - R. J. Mathar, Nov 03 2020
MATHEMATICA
f[n_] := FullSimplify[ TrigToExp[ 2^n/9 Sum[ Cos[2Pi*k/9]^n, {k, 0, 8}]]]; Table[ f[n], {n, 0, 40}] (* Robert G. Wilson v, Jun 01 2004 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Herbert Kociemba, May 29 2004
EXTENSIONS
More terms from Robert G. Wilson v, Jun 01 2004
STATUS
approved