OFFSET
1,1
LINKS
Chai Wah Wu, 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.
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
a[n_] := Prime @ Range[n] // Mean // Numerator;
a /@ Range[100] (* Jean-François Alcover, Nov 16 2019 *)
PROG
(Python)
from fractions import Fraction
from sympy import prime
A301273_list, mu = [], Fraction(0)
for i in range(1, 10001):
mu += (prime(i)-mu)/i
A301273_list.append(mu.numerator) # Chai Wah Wu, Mar 22 2018
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
N. J. A. Sloane, Mar 18 2018
STATUS
approved