OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-4).
FORMULA
a(n) = 2^n+2^(n/2)cos(pi*n/4)-1; a(n) = 5a(n-1)-10a(n-2)+10a(n-3)-4a(n-4).
MATHEMATICA
LinearRecurrence[{5, -10, 10, -4}, {1, 2, 3, 5}, 40] (* or *) CoefficientList[ Series[(1-3 x+3 x^2)/(1-5 x+10 x^2-10 x^3+4 x^4), {x, 0, 40}], x] (* Harvey P. Dale, Oct 06 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Aug 30 2004
STATUS
approved