OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..170
Index entries for linear recurrences with constant coefficients, signature (1030190,-1).
FORMULA
a(n+2) = 1030190*a(n+1)-a(n).
a(n) = A145207(n)/4489. - Colin Barker, Oct 19 2014
G.f.: -31*x*(x-1) / (x^2-1030190*x+1). - Colin Barker, Oct 19 2014
a(n) = A145205(n)/134. - Hugo Pfoertner, Apr 08 2024
EXAMPLE
a(1)=31 because the first relation is : 147^3-146^3=67*31^2.
MATHEMATICA
CoefficientList[Series[31 (1 - x)/(x^2 - 1030190 x + 1), {x, 0, 20}], x] (* Vincenzo Librandi, Oct 19 2014 *)
LinearRecurrence[{1030190, -1}, {31, 31935859}, 10] (* Harvey P. Dale, Aug 11 2021 *)
PROG
(PARI) Vec(-31*x*(x-1)/(x^2-1030190*x+1) + O(x^20)) \\ Colin Barker, Oct 19 2014
(Magma) I:=[31, 31935859]; [n le 2 select I[n] else 1030190*Self(n-1)-Self(n-2): n in [1..10]]; // Vincenzo Librandi, Oct 19 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Oct 04 2008
EXTENSIONS
Editing and more terms from Colin Barker, Oct 19 2014
STATUS
approved