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
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Oct 10 2001
STATUS
approved