OFFSET
1,1
COMMENTS
For the first of the corresponding four consecutive positive integers, see A261995.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,110,-110,0,0,-1,1).
FORMULA
G.f.: 4*x*(x^8+3*x^7+3*x^6+9*x^5-89*x^4-165*x^3-21*x^2-9*x-2) / ((x-1)*(x^8-110*x^4+1)).
EXAMPLE
8 is in the sequence because 8^2 + ... + 28^2 = 7574 = 42^2 + ... + 45^2.
PROG
(PARI) Vec(4*x*(x^8+3*x^7+3*x^6+9*x^5-89*x^4-165*x^3-21*x^2-9*x-2)/((x-1)*(x^8-110*x^4+1)) + O(x^40))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Sep 08 2015
STATUS
approved