OFFSET
1,1
LINKS
Colin Barker, Table of n, a(n) for n = 1..394
Index entries for linear recurrences with constant coefficients, signature (1,115598,-115598,-1,1).
FORMULA
a(n) = a(n-1)+115598*a(n-2)-115598*a(n-3)-a(n-4)+a(n-5) for n>5.
G.f.: 19*x*(32*x^4+680*x^3-173397*x^2-680*x-29) / ((x-1)*(x^2-340*x+1)*(x^2+340*x+1)).
EXAMPLE
551 is in the sequence because (551+57)^3 - 551^3 = 7581^2.
MATHEMATICA
LinearRecurrence[{1, 115598, -115598, -1, 1}, {551, 13471, 67002512, 1560515752, 7745359676111}, 15] (* Paolo Xausa, Mar 05 2024 *)
PROG
(PARI) Vec(19*x*(32*x^4+680*x^3-173397*x^2-680*x-29)/((x-1)*(x^2-340*x+1)*(x^2+340*x+1)) + O(x^20))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Oct 30 2015
STATUS
approved