[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A273462
Rounded variance of the first n primes, for n > 1.
6
0, 2, 5, 13, 19, 31, 41, 56, 81, 103, 136, 171, 201, 235, 280, 335, 384, 444, 505, 560, 626, 693, 772, 869, 966, 1055, 1145, 1229, 1314, 1447, 1578, 1719, 1849, 2008, 2156, 2313, 2479, 2644, 2818, 3000, 3171, 3372, 3560, 3748, 3925, 4142, 4398, 4651, 4890
OFFSET
2,2
FORMULA
a(n) = round(Sum_{i=1..n} (prime(i) - Sum_{j=1..n} prime(j)/n)^2/(n - 1)), n > 1.
MATHEMATICA
Table[Round[Variance[Prime[Range[j]]]], {j, 2, 50}]
PROG
(Sage) round(variance(primes_first_n(n))) # Danny Rorabaugh, May 25 2016
CROSSREFS
Mean and variance of primes: A301273/A301274, A301275/A301276, A301277, A273462.
Sequence in context: A073770 A077545 A069943 * A368749 A094158 A307244
KEYWORD
nonn
AUTHOR
Andres Cicuttin, May 23 2016
STATUS
approved