OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
a(n) = (-1+(-1)^n+14*n^2)/4. a(n) = 2*a(n-1)-2*a(n-3)+a(n-4). G.f.: -x*(3*x^2+8*x+3) / ((x-1)^3*(x+1)). - Colin Barker, Aug 03 2013
MATHEMATICA
CoefficientList[Series[- x (3 x^2 + 8 x + 3) / ((x - 1)^3 (x + 1)), {x, 0, 50}], x] (* Vincenzo Librandi, Aug 04 2013 *)
Floor[7*Range[0, 50]^2/2] (* or *) LinearRecurrence[{2, 0, -2, 1}, {0, 3, 14, 31}, 50] (* Harvey P. Dale, Aug 22 2020 *)
PROG
(Magma) [Floor(7*n^2/2): n in [0..50]]; // Vincenzo Librandi, Aug 04 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Aug 03 2013
STATUS
approved