This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A301274 #16 Oct 27 2019 11:13:05 %S A301274 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 A301274 28,29,10,31,32,33,34,35,12,37,38,39,40,41,14,43,44,45,46,47,48,49,50, %U A301274 51,52,1,18,55,8,19,58,59,60,61,62,9,64,65,66,67,68,69 %N A301274 Denominator of mean of first n primes. %H A301274 Chai Wah Wu, <a href="/A301274/b301274.txt">Table of n, a(n) for n = 1..10000</a> %H A301274 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 A301274 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 A301274 m := n -> add(ithprime(j),j=1..n)/n; %p A301274 m1:=[seq(m(n),n=1..100)]; %p A301274 m2:=map(numer,m1); # A301273 %p A301274 m3:=map(denom,m1); # A301274 %p A301274 m4:=map(round,m1); # A301277 %t A301274 a[n_] := Mean[Prime[Range[n]]] // Denominator; %t A301274 a /@ Range[100] (* _Jean-François Alcover_, Oct 27 2019 *) %o A301274 (Python) %o A301274 from fractions import Fraction %o A301274 from sympy import prime %o A301274 A301274_list, mu = [], Fraction(0) %o A301274 for i in range(1, 10001): %o A301274 mu += (prime(i)-mu)/i %o A301274 A301274_list.append(mu.denominator) # _Chai Wah Wu_, Mar 22 2018 %Y A301274 Mean and variance of primes: A301273/A301274, A301275/A301276, A301277, A273462. %K A301274 nonn,frac %O A301274 1,2 %A A301274 _N. J. A. Sloane_, Mar 18 2018