OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..286
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (1,1).
FORMULA
a(0)=101, a(1)=110, a(n) = a(n-1) + a(n-2).
G.f.: (110*x + 101*x^2)/(1 - x - x^2). - Philippe Deléham, Nov 20 2008
MATHEMATICA
d = 10 M = {{0, 1, 0}, {0, 0, 1}, {1, d, d^2}} v[n_] := Table[Fibonacci[n + i], {i, 0, 2}] w[n_] := M.v[n] Table[w[n][[3]], {n, 0, 50}]
Transpose[NestList[Flatten[{Last[#], Total[#]}]&, {110, 211}, 40]][[1]] (* or *) Rest[CoefficientList[Series[(110x+101x^2)/(1-x-x^2), {x, 0, 41}], x]] (* Harvey P. Dale, Mar 27 2011 *)
LinearRecurrence[{1, 1}, {110, 211}, 30] (* Harvey P. Dale, Jan 01 2023 *)
PROG
(Magma) [n le 2 select 101*n+9 else Self(n-1)+Self(n-2): n in [1..30]] // Bruno Berselli, Mar 28 2011
(PARI) a=vector(99); a[1]=110; a[2]=211; for(i=3, #a, a[i]=a[i-1]+a[i-2]); a \\ Charles R Greathouse IV, Jun 05 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Aug 19 2006
EXTENSIONS
Edited by N. J. A. Sloane, Dec 04 2006
STATUS
approved