OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..288
Eric Weisstein's World of Mathematics, Cycle Graph
Eric Weisstein's World of Mathematics, Path Graph
FORMULA
See program.
MAPLE
a:= n-> 7* (Matrix([222727, 4031, 71, 1, 0, -1, -71, -4031]). Matrix(8, (i, j)-> if i=j-1 then 1 elif j=1 then [71, -952, 3976, -6384, 3976, -952, 71, -1][i] else 0 fi)^n)[1, 5]^2: seq(a(n), n=1..15);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Mar 29 2009
STATUS
approved