login
A072631
Floor( n*log(n) ) mod n.
3
0, 1, 0, 1, 3, 4, 6, 0, 1, 3, 4, 5, 7, 8, 10, 12, 14, 16, 17, 19, 0, 2, 3, 4, 5, 6, 7, 9, 10, 12, 13, 14, 16, 17, 19, 21, 22, 24, 25, 27, 29, 30, 32, 34, 36, 38, 39, 41, 43, 45, 47, 49, 51, 53, 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 29
OFFSET
1,5
COMMENTS
Compare with A004648 because prime(n) ~ n * log(n).
LINKS
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