OFFSET
1,2
COMMENTS
Apart from the first term the same as A165516. - R. J. Mathar, Jan 20 2015
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,98,-98,-1,1).
FORMULA
a(n) = a(n-1)+98*a(n-2)-98*a(n-3)-a(n-4)+a(n-5).
G.f.: -x*(x^2-5*x+1)*(x^2+8*x+1) / ((x-1)*(x^2-10*x+1)*(x^2+10*x+1)).
EXAMPLE
64 is in the sequence because the 8th square is 64, which is also the 7th centered triangular number.
MATHEMATICA
CoefficientList[Series[(x^2 - 5 x + 1) (x^2 + 8 x + 1) / ((1 - x) (x^2 - 10 x + 1) (x^2 + 10 x + 1)), {x, 0, 70}], x] (* Vincenzo Librandi, Jan 20 2015 *)
PROG
(PARI) Vec(-x*(x^2-5*x+1)*(x^2+8*x+1)/((x-1)*(x^2-10*x+1)*(x^2+10*x+1)) + O(x^100))
(Magma) I:=[1, 4, 64, 361, 6241]; [n le 5 select I[n] else Self(n-1)+98*Self(n-2)-98*Self(n-3)-Self(n-4)+Self(n-5): n in [1..50]]; // Vincenzo Librandi, Jan 20 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jan 13 2015
STATUS
approved