OFFSET
1,1
COMMENTS
For the first of the corresponding six consecutive positive integers, see A157096.
LINKS
Colin Barker, Table of n, a(n) for n = 1..744
Index entries for linear recurrences with constant coefficients, signature (23,-23,1).
FORMULA
a(n) = 23*a(n-1)-23*a(n-2)+a(n-3) for n>3.
G.f.: -x*(x^2-22*x+61) / ((x-1)*(x^2-22*x+1)).
EXAMPLE
61 is in the sequence because 61^2 + ... + 65^2 = 19855 = 55^2 + ... + 60^2.
PROG
(PARI) Vec(-x*(x^2-22*x+61)/((x-1)*(x^2-22*x+1)) + O(x^40))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Sep 08 2015
STATUS
approved