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!)
A198396 a(n) = 6^n-6*n. 2
1, 0, 24, 198, 1272, 7746, 46620, 279894, 1679568, 10077642, 60466116, 362796990, 2176782264, 13060693938, 78364164012, 470184984486, 2821109907360, 16926659444634, 101559956668308, 609359740010382, 3656158440062856, 21936950640377730 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = 8*a(n-1)-13*a(n-2)+6*a(n-3) for n>2.
G.f.: (1-8*x+37*x^2)/((1-6*x)*(1-x)^2). - Vincenzo Librandi, Jan 04 2013
MATHEMATICA
CoefficientList[Series[(1 - 8*x + 37*x^2)/((1 - 6*x)*(1 -x)^2), {x, 0, 30}], x] (* Vincenzo Librandi, Jan 04 2013 *)
Table[6^n-6n, {n, 0, 30}] (* or *) LinearRecurrence[{8, -13, 6}, {1, 0, 24}, 30] (* Harvey P. Dale, Jul 25 2019 *)
PROG
(Magma) [6^n-6*n: n in [0..25]]
(PARI) a(n)=6^n-6*n \\ Charles R Greathouse IV, Jul 06 2017
CROSSREFS
Sequence in context: A125361 A126519 A260358 * A225296 A048355 A132458
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 26 2011
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 17:10 EDT 2024. Contains 371962 sequences. (Running on oeis4.)