OFFSET
0,3
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-2,-4).
FORMULA
a(n) = b(n) + b(n+1) where b(n) = 0, 1, -1, -3, 11, -11, -21, 85, -85, ... is the inverse binomial transform of A287479(n). - Paul Curtz, Aug 05 2018
a(n) = (((-1+i*sqrt(3))^n*(-i+sqrt(3)) + (-1-i*sqrt(3))^n*(i+sqrt(3)))) / (2*sqrt(3)) where i=sqrt(-1). - Colin Barker, Aug 08 2018
E.g.f.: exp(-x)*(sqrt(3)*cos(sqrt(3)*x) + sin(sqrt(3)*x))/sqrt(3). - Stefano Spezia, Jul 15 2024
MATHEMATICA
CoefficientList[Series[(1+2x)/(1+2x+4x^2), {x, 0, 50}], x] (* or *) LinearRecurrence[ {-2, -4}, {1, 0}, 50] (* Harvey P. Dale, Sep 18 2022 *)
PROG
(PARI) a(n) = 2^n*polchebyshev(2*n, 2, 1/2); \\ Michel Marcus, Aug 05 2018
(PARI) Vec((1 + 2*x) / (1 + 2*x + 4*x^2) + O(x^40)) \\ Colin Barker, Aug 08 2018
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 13 2005
STATUS
approved