OFFSET
1,1
COMMENTS
Also positive integers y in the solutions to 12*x^2-6*y^2+32*x+4*y+36 = 0, the corresponding values of x being A253167.
LINKS
Colin Barker, Table of n, a(n) for n = 1..653
Index entries for linear recurrences with constant coefficients, signature (1,1154,-1154,-1,1).
FORMULA
a(n) = a(n-1)+1154*a(n-2)-1154*a(n-3)-a(n-4)+a(n-5).
G.f.: -2*(x^4+105*x^3-915*x^2+615*x+2) / ((x-1)*(x^2-34*x+1)*(x^2+34*x+1)).
EXAMPLE
4 is in the sequence because O(4) = 40 = 1+5+12+22 = P(1)+P(2)+P(3)+P(4).
MATHEMATICA
LinearRecurrence[{1, 1154, -1154, -1, 1}, {4, 1234, 4020, 1423650, 4638692}, 20] (* Harvey P. Dale, Sep 06 2023 *)
PROG
(PARI) Vec(-2*(x^4+105*x^3-915*x^2+615*x+2)/((x-1)*(x^2-34*x+1)*(x^2+34*x+1)) + O(x^100))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Dec 29 2014
STATUS
approved