The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A016304 Expansion of 1/((1-2*x)*(1-6*x)*(1-7*x)). 3
1, 15, 157, 1419, 11869, 94731, 733069, 5551323, 41378557, 304766187, 2224062061, 16112628987, 116053574365, 831966057483, 5941308640333, 42294437942811, 300292730428093, 2127439102098219, 15044413649559085 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = (7^(n+2) - 2^(n+2))/5-(6^(n+2) - 2^(n+2))/4. - Zerinvary Lajos, Jun 05 2009 [corrected by Joerg Arndt, Aug 25 2011]
From Vincenzo Librandi_, Aug 25 2011: (Start)
a(0)=1, a(1)=15, a(2)=157, a(n) = 15*a(n-1) - 68*a(n-2) + 84*a(n-3);
a(0)=1, a(1)=15, a(n) = 13*a(n-1) - 42*a(n-2) + 2^n. (End)
MATHEMATICA
CoefficientList[Series[1/((1-2x)(1-6x)(1-7x)), {x, 0, 30}], x] (* or *) LinearRecurrence[{15, -68, 84}, {1, 15, 157}, 30]
PROG
(Sage) [(7^n - 2^n)/5-(6^n - 2^n)/4 for n in range(2, 21)] # Zerinvary Lajos, Jun 05 2009
(Magma) [ n eq 1 select 1 else n eq 2 select 15 else n eq 3 select 157 else 15*Self(n-1)-68*Self(n-2) +84*Self(n-3): n in [1..20] ]; // Vincenzo Librandi, Aug 25 2011
(PARI) Vec(1/((1-2*x)*(1-6*x)*(1-7*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
Sequence in context: A341918 A099915 A110557 * A016849 A300077 A367497
KEYWORD
nonn,easy
AUTHOR
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 June 8 12:22 EDT 2024. Contains 373217 sequences. (Running on oeis4.)