login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A301274 Denominator of mean of first n primes. 7

%I #16 Oct 27 2019 11:13:05

%S 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,6,19,20,21,22,1,8,5,26,27,

%T 28,29,10,31,32,33,34,35,12,37,38,39,40,41,14,43,44,45,46,47,48,49,50,

%U 51,52,1,18,55,8,19,58,59,60,61,62,9,64,65,66,67,68,69

%N Denominator of mean of first n primes.

%H Chai Wah Wu, <a href="/A301274/b301274.txt">Table of n, a(n) for n = 1..10000</a>

%H Joel E. Cohen, <a href="http://lab.rockefeller.edu/cohenje/assets/file/415PrimesTwinPrimesTaylorsLawAmStatistician2016.pdf">Statistics of Primes (and Probably Twin Primes) Satisfy Taylor’s Law from Ecology</a>, The American Statistician, 70 (2016), 399-404.

%e 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, ...

%p m := n -> add(ithprime(j),j=1..n)/n;

%p m1:=[seq(m(n),n=1..100)];

%p m2:=map(numer,m1); # A301273

%p m3:=map(denom,m1); # A301274

%p m4:=map(round,m1); # A301277

%t a[n_] := Mean[Prime[Range[n]]] // Denominator;

%t a /@ Range[100] (* _Jean-François Alcover_, Oct 27 2019 *)

%o (Python)

%o from fractions import Fraction

%o from sympy import prime

%o A301274_list, mu = [], Fraction(0)

%o for i in range(1, 10001):

%o mu += (prime(i)-mu)/i

%o A301274_list.append(mu.denominator) # _Chai Wah Wu_, Mar 22 2018

%Y Mean and variance of primes: A301273/A301274, A301275/A301276, A301277, A273462.

%K nonn,frac

%O 1,2

%A _N. J. A. Sloane_, Mar 18 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)