OFFSET
1,1
COMMENTS
Intersection of A000217 and A193866 (even pentagonal numbers divided by 2). - Michel Marcus, Jun 20 2015
LINKS
Colin Barker, Table of n, a(n) for n = 1..502
Index entries for linear recurrences with constant coefficients, signature (1,9602,-9602,-1,1).
FORMULA
G.f.: -x*(x^3+594*x^2+99*x+6) / ((x-1)*(x^2-98*x+1)*(x^2+98*x+1)).
EXAMPLE
6 is in the sequence because 6 is the 3rd triangular number, and 2*6 is the 3rd pentagonal number.
MATHEMATICA
LinearRecurrence[{1, 9602, -9602, -1, 1}, {6, 105, 58311, 1008910, 559902916}, 20] (* Vincenzo Librandi, Jun 20 2015 *)
PROG
(PARI) Vec(-x*(x^3+594*x^2+99*x+6)/((x-1)*(x^2-98*x+1)*(x^2+98*x+1)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 19 2015
STATUS
approved