OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,4,2,-1).
FORMULA
From Colin Barker, Jan 05 2014: (Start)
a(n) = 2*a(n-1) + 4*a(n-2) + 2*a(n-3) - a(n-4) for n > 5.
G.f.: (x^4-4*x^3-4*x^2+1) / (x^4-2*x^3-4*x^2-2*x+1). (End)
MATHEMATICA
m = 2; l = 4; b = Table[2^n*Product[1 + m*Cos[k*Pi/n]^2 + l*Cos[k*Pi/n]^4, {k, 1, (n - 1)/2}], {n, 0, 30}]; FullSimplify[ExpandAll[%]] Round[b]
PROG
(PARI) Vec((x^4-4*x^3-4*x^2+1)/(x^4-2*x^3-4*x^2-2*x+1) + O(x^100)) \\ Colin Barker, Jan 05 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 24 2008
STATUS
approved