cp's OEIS Frontend

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.

A273462 Rounded variance of the first n primes, for n > 1.

Original entry on oeis.org

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

Views

Author

Andres Cicuttin, May 23 2016

Keywords

Crossrefs

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

Programs

  • Mathematica
    Table[Round[Variance[Prime[Range[j]]]], {j, 2, 50}]
  • Sage
    round(variance(primes_first_n(n))) # Danny Rorabaugh, May 25 2016

Formula

a(n) = round(Sum_{i=1..n} (prime(i) - Sum_{j=1..n} prime(j)/n)^2/(n - 1)), n > 1.