OFFSET
1,5
COMMENTS
Compare with A004648 because prime(n) ~ n * log(n).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Floor[Mod[n*Log[n], n]], {n, 80}] (* Harvey P. Dale, Jun 29 2014 *)
PROG
(PARI) a(n)=floor(n*log(n))%n \\ Charles R Greathouse IV, Aug 01 2011
(Magma) [Floor(n*Log(n)) mod n: n in [1..100]]; // Vincenzo Librandi, Jun 30 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 28 2002
STATUS
approved