OFFSET
1,1
COMMENTS
LINKS
Colin Barker, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (103683,-103683,1).
FORMULA
G.f.: -18*x*(x^2+646*x+1) / ((x-1)*(x^2-103682*x+1)).
EXAMPLE
18 is in the sequence because 18 is the 3rd heptagonal number, and 2*18 is the 6th square.
MATHEMATICA
LinearRecurrence[{103683, -103683, 1}, {18, 1877922, 194706720450}, 20] (* Vincenzo Librandi, Jun 20 2015 *)
PROG
(PARI) Vec(-18*x*(x^2+646*x+1)/((x-1)*(x^2-103682*x+1)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 19 2015
STATUS
approved