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!)
A242188 a(n) = Sum_{i=1..n} (-1)^(i+1) prime(i)^3. 1
0, 8, -19, 106, -237, 1094, -1103, 3810, -3049, 9118, -15271, 14520, -36133, 32788, -46719, 57104, -91773, 113606, -113375, 187388, -170523, 218494, -274545, 297242, -407727, 504946 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
For n even this is the negative of the sum of (3^3 - 2^3) + (7^3 - 5^3) + .. (prime(n)^3 - prime(n-1)^3). But this is half of the terms in the sum of (3^3 - 2^3) + (5^3 - 3^3) + (7^3 - 5^3) + ... + (prime(n)^3 - prime(n-1)^3) which has a sum that telescopes to prime(n)^3 - 8. Thus a good estimate of a(n) (half the terms) is prime(n)^3/2 (half the square of the n-th prime) which works well. For odd n, add prime(n)^2 to the estimate for even n.
LINKS
MAPLE
ListTools:-PartialSums([0, seq((-1)^(i+1)*ithprime(i)^3, i=1..40)]); # Robert Israel, Mar 09 2020
MATHEMATICA
Table[Sum[(-1)^(i+1) Prime[i]^3, {i, n}], {n, 0, 30}] (* Harvey P. Dale, May 16 2021 *)
PROG
(PARI) a(n) = sum(i=1, n, (-1)^(i+1)*prime(i)^3);
CROSSREFS
Sequence in context: A061877 A297459 A297696 * A119284 A177124 A153704
KEYWORD
sign
AUTHOR
Timothy Varghese, May 22 2014
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 02:44 EDT 2024. Contains 371917 sequences. (Running on oeis4.)