OFFSET
1,1
COMMENTS
For the first of the corresponding ten consecutive positive integers, see A262142.
LINKS
Colin Barker, Table of n, a(n) for n = 1..632
Index entries for linear recurrences with constant coefficients, signature (39,-39,1).
FORMULA
a(n) = 39*a(n-1)-39*a(n-2)+a(n-3) for n>3.
G.f.: -x*(x^2-38*x+181) / ((x-1)*(x^2-38*x+1)).
EXAMPLE
181 is in the sequence because 181^2 + ... + 189^2 = 308085 = 171^2 + ... + 180^2.
PROG
(PARI) Vec(-x*(x^2-38*x+181)/((x-1)*(x^2-38*x+1)) + O(x^30))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Sep 12 2015
STATUS
approved