OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2000 (first 500 terms from R. H. Hardin)
Index entries for linear recurrences with constant coefficients, signature (2,0,0,-2,0,1).
FORMULA
G.f.: -1/((x^2+x+1)*(x^2+x-1)*(x-1)^2). - R. J. Mathar, Nov 30 2011
MATHEMATICA
LinearRecurrence[{2, 0, 0, -2, 0, 1}, {14, 24, 41, 68, 112, 184}, 40] (* Harvey P. Dale, Jan 23 2012 *)
CoefficientList[Series[-1 (14 - 4 x - 7 x^2 - 14 x^3 + 4 x^4 + 8 x^5) / ((1 + x + x^2) (x^2 + x - 1) (x - 1)^2), {x, 0, 33}], x] (* Vincenzo Librandi, Sep 19 2017 *)
PROG
(PARI) x='x+O('x^50); Vec(-x^4*(14-4*x-7*x^2-14*x^3+4*x^4+8*x^5)/( (1+x+x^2)*(x^2+x-1)*(x-1)^2 )) \\ G. C. Greubel, Sep 18 2017
(Magma) I:=[14, 24, 41, 68, 112, 184]; [n le 6 select I[n] else 2*Self(n-1)-2*Self(n-4)+Self(n-6): n in [1..40]]; // Vincenzo Librandi, Sep 19 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 14 2009
EXTENSIONS
Edited by Alois P. Heinz, Oct 27 2017
STATUS
approved