OFFSET
1,1
COMMENTS
For the first of the corresponding two consecutive positive integers, see A261933.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,70,-70,-1,1).
FORMULA
G.f.: x*(21*x^4+18*x^3-560*x^2-18*x-5) / ((x-1)*(x^4-70*x^2+1)).
EXAMPLE
5 is in the sequence because 5^2 + 6^2 + ... + 21^2 = 40^2 + 41^2.
PROG
(PARI) Vec(x*(21*x^4+18*x^3-560*x^2-18*x-5)/((x-1)*(x^4-70*x^2+1)) + O(x^40))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Sep 06 2015
STATUS
approved