OFFSET
1,1
COMMENTS
Differs from A075465 where ties are involved. - R. J. Mathar, Mar 20 2018
LINKS
Altug Alkan, Table of n, a(n) for n = 1..10000
Joel E. Cohen, Statistics of Primes (and Probably Twin Primes) Satisfy Taylor's Law from Ecology, The American Statistician, 70 (2016), 399-404.
FORMULA
a(n) = round(A007504(n) / n). - David A. Corneth, Mar 22 2018
a(n) ~ prime(n)/2 ~ n*log(n)/2. - Daniel Forgues, Mar 22 2018
EXAMPLE
The means are 2, 5/2, 10/3, 17/4, 28/5, 41/6, 58/7, 77/8, 100/9, 129/10, 160/11, 197/12, 238/13, 281/14, 328/15, 381/16, 440/17, 167/6, 568/19, 639/20, 712/21, 791/22, 38, 321/8, 212/5, ...
MAPLE
MATHEMATICA
Rest@ FoldList[{Append[First@ #1, #2], If[And[EvenQ@ #1, #2 == 1/2] & @@ {IntegerPart@ #, FractionalPart@ #}, Round@ # + 1, Round@ #] &@ Mean@ First@ #1} &, {{2}, 2}, Prime@ Range[2, 63]][[All, -1]] (* Michael De Vlieger, Apr 05 2018 *)
PROG
(PARI) a(n) = round(sum(i=1, n, prime(i))/n); \\ Altug Alkan, Mar 22 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 18 2018
STATUS
approved