OFFSET
0,3
COMMENTS
Hankel transform of A168051.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-1,0,-1,-1).
FORMULA
G.f.: (1+x^2)/((1+x)^2*(1-x+x^2)).
a(n) = cos(Pi*n/3)/3 + sqrt(3)*sin(Pi*n/3)/9 + 2*(n+1)*(-1)^n/3.
a(n) = A010892(n)/3 + 2*(-1)^n*(n+1)/3. - R. J. Mathar, Sep 30 2012
E.g.f.: exp(-x)*(6 - 6*x + exp(3*x/2)*(3*cos(sqrt(3)*x/2) + sqrt(3)*sin(sqrt(3)*x/2)))/9. - Stefano Spezia, Apr 03 2023
MATHEMATICA
LinearRecurrence[{-1, 0, -1, -1}, {1, -1, 2, -3}, 100] (* G. C. Greubel, Jul 07 2016 *)
CoefficientList[Series[(1 + x^2) / ((1 + x)^2 (1 - x + x^2)), {x, 0, 80}], x] (* Vincenzo Librandi, Jul 08 2016 *)
PROG
(Magma) I:=[1, -1, 2, -3]; [n le 4 select I[n] else - Self(n-1)-Self(n-3)- Self(n-4): n in [1..65]]; // Vincenzo Librandi, Jul 08 2016
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Nov 17 2009
STATUS
approved