OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..180
Index entries for linear recurrences with constant coefficients, signature (456302,-1).
FORMULA
a(n+2) = 456302*a(n+1)-a(n).
G.f.: -19*x*(x-1) / (x^2-456302*x+1). - Colin Barker, Oct 19 2014
EXAMPLE
a(1)=19 because the first relation is : 98^3-97^3=79*19^2.
MATHEMATICA
CoefficientList[Series[19 (1 - x)/(x^2 - 456302 x + 1), {x, 0, 20}], x] (* Vincenzo Librandi, Oct 19 2014 *)
LinearRecurrence[{456302, -1}, {19, 8669719}, 10] (* Harvey P. Dale, Dec 10 2015 *)
PROG
(PARI) Vec(-19*x*(x-1) / (x^2-456302*x+1) + O(x^20)) \\ Colin Barker, Oct 19 2014
(Magma) I:=[19, 8669719]; [n le 2 select I[n] else 456302*Self(n-1)-Self(n-2): n in [1..10]]; // Vincenzo Librandi, Oct 19 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Oct 06 2008
STATUS
approved