OFFSET
1,1
COMMENTS
Also positive integers x in the solutions to 6*x^2-5*y^2+4*x+3*y+2 = 0, the corresponding values of y being A252586.
LINKS
Colin Barker, Table of n, a(n) for n = 1..745
Index entries for linear recurrences with constant coefficients, signature (1,482,-482,-1,1).
FORMULA
a(n) = a(n-1)+482*a(n-2)-482*a(n-3)-a(n-4)+a(n-5).
G.f.: x*(11*x^3+63*x^2-231*x-3) / ((x-1)*(x^2-22*x+1)*(x^2+22*x+1)).
EXAMPLE
3 is in the sequence because P(3)+P(4) = 12+22 = 34 = H(4).
MATHEMATICA
LinearRecurrence[{1, 482, -482, -1, 1}, {3, 234, 1617, 112948, 779551}, 20] (* Jean-François Alcover, Nov 13 2017 *)
PROG
(PARI) Vec(x*(11*x^3+63*x^2-231*x-3)/((x-1)*(x^2-22*x+1)*(x^2+22*x+1)) + O(x^100))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Dec 18 2014
STATUS
approved