OFFSET
1,1
COMMENTS
Intersection of A000566 and A074378 (even triangular numbers divided by 2). - Michel Marcus, Jun 20 2015
LINKS
Colin Barker, Table of n, a(n) for n = 1..317
Index entries for linear recurrences with constant coefficients, signature (1,2079362,-2079362,-1,1).
FORMULA
G.f.: -9*x*(2*x^4+19*x^3+33170*x^2+19*x+2) / ((x-1)*(x^2-1442*x+1)*(x^2+1442*x+1)).
EXAMPLE
18 is in the sequence because 18 is the 3rd heptagonal number, and 2*18 is the 8th triangular number.
MATHEMATICA
LinearRecurrence[{1, 2079362, -2079362, -1, 1}, {18, 189, 37727235, 393298308, 78448579122960}, 20] (* Vincenzo Librandi, Jun 20 2015 *)
PROG
(PARI) Vec(-9*x*(2*x^4+19*x^3+33170*x^2+19*x+2)/((x-1)*(x^2-1442*x+1)*(x^2+1442*x+1)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 19 2015
STATUS
approved