login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A129701 Difference between successive primes cubed: a(n) = prime(n+1)^3 - prime(n)^3. 7
19, 98, 218, 988, 866, 2716, 1946, 5308, 12222, 5402, 20862, 18268, 10586, 24316, 45054, 56502, 21602, 73782, 57148, 31106, 104022, 78748, 133182, 207704, 117628, 62426, 132316, 69986, 147868, 605486, 199708, 323262, 114266, 622330, 135002 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

FORMULA

a(n) = A030078(n+1) - A030078(n). - Michel Marcus, Sep 04 2013

EXAMPLE

a(3) because the fourth prime is 7, cubed 343, the third prime is 5, cubed 125, 343-125=218.

MAPLE

last:=8; for i from 3 to 30 do > while isprime(i)=false do > i:=i + 1; > end do; > r:= i^3 - last; > last:=i^3; > end do;

MATHEMATICA

Table[Prime[n+1]^3 - Prime[n]^3, {n, 1, 40}] (* Stefan Steinerberger, Jun 05 2007 *)

Last[#]-First[#]&/@(Partition[Prime[Range[40]], 2, 1]^3) (* Harvey P. Dale, Oct 13 2012 *)

PROG

(PARI) {a(n) = prime(n+1)^3 - prime(n)^3}; \\ G. C. Greubel, May 19 2019

(MAGMA) [NthPrime(n+1)^3 - NthPrime(n)^3: n in [1..40]]; // G. C. Greubel, May 19 2019

(Sage) [nth_prime(n+1)^3 - nth_prime(n)^3 for n in (1..40)] # G. C. Greubel, May 19 2019

CROSSREFS

Cf. A030078 (cubes of primes).

Sequence in context: A069593 A299733 A086120 * A221746 A241236 A044270

Adjacent sequences:  A129698 A129699 A129700 * A129702 A129703 A129704

KEYWORD

nonn

AUTHOR

Ben Paul Thurston, Jun 01 2007

EXTENSIONS

More terms from Stefan Steinerberger, Jun 05 2007

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 22 10:25 EST 2020. Contains 331144 sequences. (Running on oeis4.)