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!)
A229788 6*2^n - n^2 - 5*n - 6. 0
0, 0, 4, 18, 54, 136, 312, 678, 1426, 2940, 5988, 12106, 24366, 48912, 98032, 196302, 392874, 786052, 1572444, 3145266, 6290950, 12582360, 25165224, 50330998, 100662594, 201325836, 402652372, 805305498, 1610611806, 3221224480, 6442449888 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Sum_{i = 1 .. n} (i^2 + i - 2)/2^i = a(n)/2^n so we see that the sum approaches 6 as n gets large.
LINKS
FORMULA
O.g.f.: (4 - 2x)*x^2/((1 - x)^3*(1 - 2x)).
MATHEMATICA
RecurrenceTable[{a[n] == 2a[n - 1] + n^2 + n - 2, a[1] == 0}, a, {n, 1, 25}]
Table[6*2^n - n^2 - 5*n - 6, {n, 0, 30}] (* T. D. Noe, Oct 01 2013 *)
CROSSREFS
Sequence in context: A020644 A182031 A212250 * A242206 A181411 A238915
KEYWORD
nonn,easy
AUTHOR
Geoffrey Critzer, Sep 29 2013
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 17:52 EDT 2024. Contains 373227 sequences. (Running on oeis4.)