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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064662 a(n) = n - round( prime(n)/log(prime(n)) ). 2
-2, -1, 0, 0, 0, 1, 1, 2, 2, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 5, 5, 5, 6, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 8, 8, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 11, 10, 9, 10, 11, 11, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Harry J. Smith, Table of n, a(n) for n = 1..1000

MATHEMATICA

rpl[n_]:=Module[{p=Prime[n]}, n-Round[p/Log[p]]]; Array[rpl, 90] (* Harvey P. Dale, May 20 2019 *)

PROG

(PARI) { for (n=1, 1000, write("b064662.txt", n, " ", n - round( prime(n)/log(prime(n)) )) ) } \\ Harry J. Smith, Sep 21 2009

(MAGMA) [n - Round(NthPrime(n) / Log(NthPrime(n))): n in [1..100]]; // Vincenzo Librandi, May 25 2019

CROSSREFS

Cf. A064659-A064663.

Sequence in context: A334090 A179195 A238386 * A024944 A304871 A117907

Adjacent sequences:  A064659 A064660 A064661 * A064663 A064664 A064665

KEYWORD

sign

AUTHOR

N. J. A. Sloane, Oct 10 2001

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 July 27 15:49 EDT 2021. Contains 346308 sequences. (Running on oeis4.)