OFFSET
1,1
COMMENTS
For the first of the corresponding thirteen consecutive positive integers, see A262077.
LINKS
Colin Barker, Table of n, a(n) for n = 1..572
Index entries for linear recurrences with constant coefficients, signature (1,3148,-3148,-1,1).
FORMULA
a(n) = a(n-1)+3148*a(n-2)-3148*a(n-3)-a(n-4)+a(n-5) for n>5.
G.f.: -26*x*(x^4+22*x^3+317*x^2+22*x+1) / ((x-1)*(x^4-3148*x^2+1)).
EXAMPLE
26 is in the sequence because 26^2 + ... + 32^2 = 5915 = 15^2 + ... + 27^2.
MATHEMATICA
LinearRecurrence[{1, 3148, -3148, -1, 1}, {26, 598, 90688, 1891916, 285495236}, 20] (* Vincenzo Librandi, Sep 11 2015 *)
PROG
(PARI) Vec(-26*x*(x^4+22*x^3+317*x^2+22*x+1)/((x-1)*(x^4-3148*x^2+1)) + O(x^20))
(Magma) I:=[26, 598, 90688, 1891916, 285495236]; [n le 5 select I[n] else Self(n-1)+3148*Self(n-2)-3148*Self(n-3)-Self(n-4)+Self(n-5): n in [1..20]]; // Vincenzo Librandi, Sep 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Sep 10 2015
STATUS
approved