OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
a(n) = 2n^2 + floor(n^2/2). [Wesley Ivan Hurt, Jun 14 2013]
G.f.: 2*x*(1+3*x+x^2)/((1+x)*(1-x)^3). [Bruno Berselli, Jun 14 2013]
a(n) = 2*A032527(n). [Bruno Berselli, Jun 14 2013]
MAPLE
MATHEMATICA
Table[Floor[5 n^2/2], {n, 0, 50}] (* Bruno Berselli, Jun 14 2013 *)
LinearRecurrence[{2, 0, -2, 1}, {0, 2, 10, 22}, 50] (* Harvey P. Dale, Dec 14 2016 *)
PROG
(Magma) [Floor(5*n^2/2): n in [0..50]]; // Bruno Berselli, Jun 14 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved