OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 2*a(n-1)-a(n-2). - Colin Barker, Aug 20 2014
G.f.: 111111111*x / (x-1)^2. - Colin Barker, Aug 20 2014
MATHEMATICA
Table[9 n 12345679, {n, 1, 20}] (* Vincenzo Librandi, Aug 20 2014 *)
LinearRecurrence[{2, -1}, {111111111, 222222222}, 20] (* Harvey P. Dale, Sep 10 2023 *)
PROG
(Magma) [9*n*12345679: n in [1..20]]; // Vincenzo Librandi, Aug 20 2014
(PARI) Vec(111111111*x/(x-1)^2 + O(x^100)) \\ Colin Barker, Aug 20 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 06 2010
STATUS
approved