login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121842 Difference between n^3 and next prime. 1
2, 1, 3, 2, 3, 2, 7, 4, 9, 4, 9, 30, 5, 6, 5, 14, 3, 6, 7, 4, 9, 16, 3, 30, 5, 4, 3, 4, 9, 2, 11, 12, 3, 14, 9, 24, 7, 18, 5, 14, 7, 6, 5, 24, 9, 2, 31, 14, 5, 10, 3, 10, 3, 14, 13, 18, 5, 28, 9, 12, 23, 10, 3, 2, 3, 2, 5, 16, 9, 2, 19, 2, 25, 6, 3, 16, 3, 6, 5, 4, 9, 16, 13, 2, 19, 4, 3, 4, 9, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Charles R Greathouse IV, Table of n, a(n) for n = 0..10000

FORMULA

a(n) = A013632(n^3) = A013632(A000578(n)). - Michel Marcus, Oct 10 2013

EXAMPLE

a(6)=7 because next prime after 6^3=216 is 223 and 223-216=7.

PROG

(PARI) a(n) = nextprime(n^3) - n^3; \\ Michel Marcus, Oct 10 2013

CROSSREFS

Sequence in context: A100677 A188637 A083290 * A317963 A219609 A087825

Adjacent sequences:  A121839 A121840 A121841 * A121843 A121844 A121845

KEYWORD

nonn,easy

AUTHOR

Zak Seidov, Aug 29 2006

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 21 19:08 EDT 2018. Contains 316427 sequences. (Running on oeis4.)