OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (9,10).
FORMULA
a(n) = A098611(n) + 2*(-1)^n.
From Chai Wah Wu, Sep 22 2016: (Start)
a(n) = 9*a(n-1) + 10*a(n-2) for n > 1.
G.f.: (9*x - 2)/((x + 1)*(10*x - 1)). (End)
E.g.f.: exp(-x)*(exp(11*x) + 1). - Elmo R. Oliveira, Aug 17 2024
MATHEMATICA
Total/@Partition[Riffle[10^Range[0, 20], {1, -1}], 2] (* or *) Table[10^n+(-1)^n, {n, 0, 20}] (* Harvey P. Dale, Aug 20 2012 *)
PROG
(Magma) [10^n+(-1)^n: n in [0..20]]; // Vincenzo Librandi, Sep 23 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Sep 17 2004
STATUS
approved