OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (2,0,-2,1).
FORMULA
MAPLE
MATHEMATICA
Table[n^2+2n+2-(-1)^n, {n, 0, 100}] (* Wesley Ivan Hurt, Nov 30 2013 *)
PROG
(Magma) [n^2+2*n+2-(-1)^n: n in [0..50]]; // Vincenzo Librandi, Sep 06 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Jul 25 2003
STATUS
approved