OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
OEIS Wiki, Figurate numbers
Eric Weisstein's World of Mathematics, Nonagonal Number
Index entries for linear recurrences with constant coefficients, signature (-2,0,2,1).
FORMULA
G.f.: -x*(1 - 6*x)/((1 - x)*(1 + x)^3).
a(n) = ((14*n^2 + 4*n - 5)*(-1)^n + 5)/8.
a(n) = Sum_{k = 0..n} (-1)^k*A001106(k).
Lim_{n -> infinity} a(n + 1)/a(n) = -1.
MATHEMATICA
Table[((14 n^2 + 4 n - 5) (-1)^n + 5)/8, {n, 0, 44}]
CoefficientList[Series[(x - 6 x^2)/(x^4 + 2 x^3 - 2 x - 1), {x, 0, 50}], x] (* Vincenzo Librandi, Dec 21 2015 *)
PROG
(Magma) [(14*(-1)^n*n^2 + 4*(-1)^n*n - 5*(-1)^n + 5)/8: n in [0..50]]; // Vincenzo Librandi, Dec 21 2015
(PARI) x='x+O('x^100); concat(0, Vec(-x*(1-6*x)/((1-x)*(1+x)^3))) \\ Altug Alkan, Dec 21 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Ilya Gutkovskiy, Dec 21 2015
STATUS
approved