login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A198960
a(n) = 3*9^n-1.
1
2, 26, 242, 2186, 19682, 177146, 1594322, 14348906, 129140162, 1162261466, 10460353202, 94143178826, 847288609442, 7625597484986, 68630377364882, 617673396283946, 5559060566555522, 50031545098999706, 450283905890997362
OFFSET
0,1
FORMULA
a(n) = 2*A096053(n).
a(n) = 9*a(n-1)+8, n>0.
a(n) = 10*a(n-1)-9*a(n-2), n>1.
G.f.: 2*(1 + 3*x)/(1 - 10*x + 9*x^2). - Vincenzo Librandi, Jan 03 2013
MATHEMATICA
CoefficientList[Series[2*(1 + 3*x)/(1 - 10*x + 9*x^2), {x, 0, 30}], x] (* Vincenzo Librandi, Jan 03 2013 *)
LinearRecurrence[{10, -9}, {2, 26}, 30] (* Harvey P. Dale, Dec 07 2024 *)
PROG
(Magma) [3*9^n-1: n in [0..20]];
CROSSREFS
Sequence in context: A211319 A121768 A280556 * A289263 A296600 A187252
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, Nov 01 2011
STATUS
approved