OFFSET
1,2
COMMENTS
Related to backward decimal expansion of fraction 1/119 and Pell numbers. [How? - Joerg Arndt, May 14 2011]
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..150
Index entries for linear recurrences with constant coefficients, signature (121,-120).
FORMULA
a(n) = 120*a(n-1) + 1.
From Colin Barker, Oct 02 2015: (Start)
a(n) = 121*a(n-1) - 120*a(n-2) for n > 2.
G.f.: x / ((x-1)*(120*x-1)).
(End)
MATHEMATICA
NestList[120#+1&, 1, 20] (* Harvey P. Dale, May 21 2023 *)
PROG
(Magma) [(1/119)*(120^n-1): n in [1..20]]; // Vincenzo Librandi, May 17 2011
(PARI) Vec(x/((x-1)*(120*x-1)) + O(x^20)) \\ Colin Barker, Oct 02 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Mark Dols, May 29 2010
STATUS
approved