OFFSET
1,1
COMMENTS
Intersection of A000290 and A033579 (even octagonal numbers divided by 2). - Michel Marcus, Jun 20 2015
LINKS
Colin Barker, Table of n, a(n) for n = 1..251
Index entries for linear recurrences with constant coefficients, signature (9603,-9603,1).
FORMULA
G.f.: -4*x*(x^2+198*x+1) / ((x-1)*(x^2-9602*x+1)).
EXAMPLE
4 is in the sequence because 4 is the 2nd square, and 2*4 is the 2nd octagonal number.
MATHEMATICA
LinearRecurrence[{9603, -9603, 1}, {4, 39204, 376437604}, 20] (* Vincenzo Librandi, Jun 20 2015 *)
PROG
(PARI) Vec(-4*x*(x^2+198*x+1)/((x-1)*(x^2-9602*x+1)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 19 2015
STATUS
approved