login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A155666 9^n-8^n+1. 8
1, 2, 18, 218, 2466, 26282, 269298, 2685818, 26269506, 253202762, 2413042578, 22791125018, 213710059746, 1992110014442, 18478745943858, 170706760005818, 1571545212141186, 14425381885981322, 132080236787517138 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: 1/(1-9*x)-1/(1-8*x)+1/(1-x). E.g.f.: e^(9*x)-e^(8*x)+e^x.
a(n)=17*a(n-1)-72*a(n-2)+56 with a(0)=1, a(1)=2 - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[9^n-8^n+1, {n, 0, 20}] (* or *) LinearRecurrence[{18, -89, 72}, {1, 2, 18}, 20] (* Harvey P. Dale, Aug 16 2015 *)
PROG
(PARI) a(n)=9^n-8^n+1 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
Sequence in context: A052726 A217239 A279045 * A355723 A227934 A349652
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 31 2009
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)