OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..360
Index entries for linear recurrences with constant coefficients, signature (590,-1).
FORMULA
a(n+2) = 590*a(n+1)-a(n).
G.f.: -1369*x*(x-1) / (x^2-590*x+1). - Colin Barker, Oct 18 2014
EXAMPLE
a(1)=1369 because the first relation is (111+37)^3-111^3=1369^2.
MATHEMATICA
LinearRecurrence[{590, -1}, {1369, 806341}, 20] (* Harvey P. Dale, Apr 10 2014 *)
CoefficientList[Series[1369 (1 - x)/(x^2 - 590 x + 1), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 18 2014 *)
PROG
(PARI) Vec(-1369*x*(x-1)/(x^2-590*x+1) + O(x^20)) \\ Colin Barker, Oct 18 2014
(Magma) I:=[1369, 806341]; [n le 2 select I[n] else 590*Self(n-1)-Self(n-2): n in [1..20]]; // Vincenzo Librandi, Oct 18 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Oct 16 2008
EXTENSIONS
Edited by Colin Barker, Oct 18 2014
STATUS
approved