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!)
A178675 a(n) = 4^n + 4. 2
5, 8, 20, 68, 260, 1028, 4100, 16388, 65540, 262148, 1048580, 4194308, 16777220, 67108868, 268435460, 1073741828, 4294967300, 17179869188, 68719476740, 274877906948, 1099511627780, 4398046511108, 17592186044420, 70368744177668, 281474976710660, 1125899906842628 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = 4*(a(n-1) - 3) with n > 0, a(0)=5.
G.f.: ( 5-17*x ) / ( (1-4*x)*(1-x) ). - R. J. Mathar, Jan 05 2011
a(n) = 5*a(n-1) - 4*a(n-2). - Vincenzo Librandi, Jun 18 2013
E.g.f.: exp(4*x) + 4*exp(x). - G. C. Greubel, Jan 27 2019
MATHEMATICA
Table[4^n +4, {n, 0, 40}] (* or *) CoefficientList[Series[(5-17x)/((4x - 1)(x-1)), {x, 0, 30}], x] (* Vincenzo Librandi, Jun 18 2013 *)
LinearRecurrence[{5, -4}, {5, 8}, 30] (* Harvey P. Dale, Sep 12 2023 *)
PROG
(Magma)[4^n+4: n in [0..35]];
(Magma) I:=[5, 8]; [n le 2 select I[n] else 5*Self(n-1)-4*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Jun 18 2013
(PARI) vector(40, n, n--; 4^n+4) \\ G. C. Greubel, Jan 27 2019
(Sage) [4^n+4 for n in range(40)] # G. C. Greubel, Jan 27 2019
(GAP) List([0..30], n -> 4^n + 4); # G. C. Greubel, Jan 27 2019
CROSSREFS
Sequence in context: A084568 A340509 A198635 * A271087 A271693 A271281
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Dec 25 2010
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 19 12:14 EDT 2024. Contains 371792 sequences. (Running on oeis4.)