OFFSET
-1,3
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (101, -100).
FORMULA
From Chai Wah Wu, Feb 11 2018: (Start)
a(n) = 101*a(n-1) - 100*a(n-2) for n > 1.
G.f.: (110*x^2 - 101*x + 1)/(x*(x - 1)*(100*x - 1)). (End)
MATHEMATICA
Join[{1, 0}, RecurrenceTable[{a[1]==10, a[2]==1010, a[n]==101 a[n-1] - 100 a[n-2]}, a, {n, 15}]] (* Vincenzo Librandi, Feb 11 2018 *)
PROG
(Magma) I:=[1, 0, 10]; [n le 3 select I[n] else 101*Self(n-1)-100*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Feb 11 2018
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Rick L. Shepherd, Apr 07 2010
STATUS
approved