OFFSET
1,1
COMMENTS
For the first of the corresponding ten consecutive positive integers, see A261934.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,18,-18,0,0,-1,1).
FORMULA
G.f.: -2*x*(4*x^8-x^7+x^5-63*x^4+29*x^3+10*x^2+11*x+13) / ((x-1)*(x^4-4*x^2-1)*(x^4+4*x^2-1)).
a(n) = a(n-1) + 18*a(n-4) - 18*a(n-5) - a(n-8) + a(n-9) for n>8. - Vincenzo Librandi, Sep 07 2015
EXAMPLE
26 is in the sequence because 26^2 + 27^2 = 7^2 + 8^2 + ... + 16^2.
MATHEMATICA
CoefficientList[Series[2 (4 x^8 - x^7 + x^5 - 63 x^4 + 29 x^3 + 10 x^2 + 11 x + 13)/((1 - x) (x^4 - 4 x^2 - 1) (x^4 + 4 x^2 - 1)), {x, 0, 45}], x] (* Vincenzo Librandi, Sep 07 2015 *)
PROG
(PARI) Vec(-2*x*(4*x^8-x^7+x^5-63*x^4+29*x^3+10*x^2+11*x+13)/((x-1)*(x^4-4*x^2-1)*(x^4+4*x^2-1)) + O(x^40))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Sep 06 2015
STATUS
approved