OFFSET
1,2
COMMENTS
If a(n)=x and a(n+1)=y then (x^2+y^2)/(xy+1)=100.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (100,-1).
FORMULA
G.f.: (10*x)/(1 -100*x +x^2). - Harvey P. Dale, Aug 15 2012
MATHEMATICA
LinearRecurrence[{100, -1}, {0, 10}, 20] (* Vincenzo Librandi, Feb 26 2012 *)
CoefficientList[Series[(10*x)/(1-100*x+x^2), {x, 0, 20}], x] (* Harvey P. Dale, Aug 15 2012 *)
PROG
(Magma) I:=[0, 10]; [n le 2 select I[n] else 100*Self(n-1)-Self(n-2): n in [1..20]]; // Vincenzo Librandi, Feb 26 2012
(PARI) a(n)=([0, 1; -1, 100]^n*[0; 10])[1, 1] \\ Charles R Greathouse IV, Sep 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 04 2009
STATUS
approved