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!)
A121844 Excess of n^3 over previous prime. 0
1, 4, 3, 12, 5, 6, 3, 2, 3, 4, 5, 18, 3, 2, 3, 4, 5, 2, 7, 4, 9, 4, 17, 6, 3, 2, 9, 10, 7, 2, 19, 4, 3, 12, 7, 2, 3, 38, 3, 4, 11, 14, 25, 4, 9, 10, 5, 6, 9, 4, 5, 4, 7, 12, 15, 4, 9, 22, 17, 38, 7, 4, 5, 16, 5, 2, 9, 28, 11, 28, 17, 14, 3, 28, 9, 4, 5, 12, 3, 58, 5, 4, 11, 12, 13, 16, 21, 22, 7, 2, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,2
LINKS
EXAMPLE
a(5)=12 because 5^3=125 and previous prime is 113 hence a(5)=125-113=12
MATHEMATICA
Table[n^3-Prime[PrimePi[n^3]], {n, 2, 100}]
#-NextPrime[#, -1]&/@((Range[2, 100])^3) (* Harvey P. Dale, Apr 06 2013 *)
PROG
(PARI) a(n) = n^3 - precprime(n^3 - 1) \\ Michel Marcus, Jun 03 2013
CROSSREFS
Cf. A077037.
Sequence in context: A271098 A269718 A099377 * A091512 A106285 A240134
KEYWORD
nonn
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 09:22 EDT 2024. Contains 371967 sequences. (Running on oeis4.)