OFFSET
0,1
COMMENTS
FORMULA
a(n) = Fib(n+2) + sqrt(3)cos(2Pi*n/3 + Pi/6) + sin(2Pi*n/3 + Pi/6); a(n) = a(n-2) + 2a(n-3) + a(n-4), a(0) = 3, a(1) = 1, a(2) = 2, a(3) = 7.
MATHEMATICA
a[0] = 3; a[1] = 1; a[2] = 2; a[3] = 7; a[n_] := a[n] = a[n - 2] + 2a[n - 3] + a[n - 4]; Table[ a[n], {n, 0, 37}] (* Robert G. Wilson v, Nov 26 2004 *)
CoefficientList[ Series[(3 + x - x^2)/((1 + x + x^2)(1 - x - x^2)), {x, 0, 37}], x] (* Robert G. Wilson v, Nov 26 2004 *)
PROG
(PARI) Vec((3+x-x^2)/((1+x+x^2)*(1-x-x^2))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Creighton Dement, Nov 21 2004
EXTENSIONS
More terms from Robert G. Wilson v, Nov 26 2004
STATUS
approved