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”).

A155667
a(n) = 10^n-8^n+1.
7
1, 3, 37, 489, 5905, 67233, 737857, 7902849, 83222785, 865782273, 8926258177, 91410065409, 931280523265, 9450244186113, 95601953488897, 964815627911169, 9718525023289345, 97748200186314753, 981985601490518017
OFFSET
0,2
FORMULA
G.f.: 1/(1-10*x)-1/(1-8*x)+1/(1-x).
E.g.f.: e^(10*x)-e^(8*x)+e^x.
a(n) = 18*a(n-1)-80*a(n-2)+63 with a(0) = 1, a(1) = 3. - Vincenzo Librandi, Jul 21 2010
a(n) = 19*a(n-1) - 98*a(n-2) + 80*a(n-3). - Wesley Ivan Hurt, Apr 18 2023
MATHEMATICA
Table[10^n - 8^n + 1, {n, 0, 25}] (* Paolo Xausa, Aug 02 2024 *)
PROG
(PARI) a(n)=10^n-8^n+1 \\ Charles R Greathouse IV, Jun 11 2015
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 31 2009
STATUS
approved