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!)
A173961 Averages of two consecutive even cubes: (n^3+(n+2)^3)/2. 3
4, 36, 140, 364, 756, 1364, 2236, 3420, 4964, 6916, 9324, 12236, 15700, 19764, 24476, 29884, 36036, 42980, 50764, 59436, 69044, 79636, 91260, 103964, 117796, 132804, 149036, 166540, 185364, 205556, 227164, 250236, 274820, 300964, 328716, 358124 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
G.f.: x*(4+20*x+20*x^2+4*x^3)/(1-4*x+6*x^2-4*x^3+x^4). - Colin Barker, Jan 04 2012
a(n) = 8n^3 - 12n^2 + 12n - 4. - Charles R Greathouse IV, Jan 02 2012
a(n) = 4*a(n-1) -6*a(n-2) +4*a(n-3) -a(n-4). - Vincenzo Librandi, Jul 02 2012
a(n) = 4 * A005898(n-1).
EXAMPLE
(0^3+2^3)/2=4, (2^3+4^3)/2=36, ....
MATHEMATICA
f[n_]:=(n^3+(n+2)^3)/2; Table[f[n], {n, 0, 5!, 2}]
CoefficientList[Series[(4+20*x+20*x^2+4*x^3)/(1-4*x+6*x^2-4*x^3+x^4), {x, 0, 40}], x] (* Vincenzo Librandi, Jul 02 2012 *)
PROG
(PARI) a(n)=4*n*(2*n^2-3*n+3)-4 \\ Charles R Greathouse IV, Jan 02 2012
(Magma) I:=[4, 36, 140, 364]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..40]]; // Vincenzo Librandi, Jul 02 2012
CROSSREFS
Sequence in context: A060783 A296948 A125756 * A340661 A035287 A183354
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 May 14 10:41 EDT 2024. Contains 372532 sequences. (Running on oeis4.)