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.

Showing 1-4 of 4 results.

A128930 a(n) = prime(n) * pi(n).

Original entry on oeis.org

0, 3, 10, 14, 33, 39, 68, 76, 92, 116, 155, 185, 246, 258, 282, 318, 413, 427, 536, 568, 584, 632, 747, 801, 873, 909, 927, 963, 1090, 1130, 1397, 1441, 1507, 1529, 1639, 1661, 1884, 1956, 2004, 2076, 2327, 2353, 2674, 2702, 2758, 2786, 3165, 3345, 3405
Offset: 1

Views

Author

Cino Hilliard, Apr 23 2007

Keywords

Comments

Pi(n) = number of prime numbers <= n (A000720). Prime(n) = A000040(n).
Conjecture: For each n there is at least one prime p such that a(n) < p < a(n+1). From the conjecture follows that the prime gaps g(n) = p(n+1) - p(n) = O(sqrt(p(n))/log(p(n))). Legendre's hypothesis is that g(n) = O(sqrt(p(n))). - Thomas Ordowski, Aug 11 2012

Crossrefs

Programs

  • Mathematica
    Table[Prime[n] * PrimePi[n], {n, 50}] (* Harvey P. Dale, Mar 17 2011 *)
  • PARI
    g(n) = for(x=1,n,y=prime(x)*primepi(x);print1(y","))

Formula

a(n) ~ (n log n)*(n/log n) = n^2. a(n) > n^2 for n > 4. - Thomas Ordowski, Aug 09 2012

A065313 a(n) = pi(n*pi(n)).

Original entry on oeis.org

0, 1, 3, 4, 6, 7, 9, 11, 11, 12, 16, 17, 21, 23, 24, 24, 30, 30, 36, 37, 39, 40, 46, 47, 48, 51, 53, 54, 61, 62, 68, 70, 72, 74, 76, 77, 86, 87, 91, 92, 99, 100, 110, 112, 114, 117, 126, 128, 130, 132, 135, 137, 146, 150, 151, 154, 156, 157, 168, 171, 184, 186, 189
Offset: 1

Views

Author

Labos Elemer, Oct 29 2001

Keywords

Crossrefs

Programs

  • Mathematica
    Table[PrimePi[w*PrimePi[w]], {w, 1, 100}]
  • PARI
    a(n) = { primepi(n*primepi(n)) } \\ Harry J. Smith, Oct 16 2009

Formula

a(n) = A000720(n*A000720(n)).

A261792 Primes of the form k*pi(k) - 1, where pi(k) is the number of primes <= k.

Original entry on oeis.org

5, 7, 17, 31, 59, 83, 89, 151, 167, 233, 251, 373, 443, 467, 479, 601, 643, 719, 863, 911, 1019, 1097, 1151, 1187, 1291, 1439, 1553, 1637, 1759, 1931, 2207, 2861, 3023, 3389, 3449, 3539, 3659, 3719, 3779, 3967, 4759, 4793, 4861, 5471, 5507, 6269, 6551, 6959, 7039, 7079, 7643, 7727, 7853, 7937, 8623
Offset: 1

Views

Author

Ilya Gutkovskiy, Sep 01 2015

Keywords

Comments

Sequence elements A000040 of the form A128913(n) - 1.
Primes of the form pi(k)*pi(prime(k)) + e^(i*Pi), where pi(k) is the number of primes <= k, i is the imaginary unit, Pi = 3.14159...

Crossrefs

Programs

  • Mathematica
    Select[Array[# PrimePi[#] - 1 &, {200}], PrimeQ] (* Michael De Vlieger, Sep 01 2015 *)
  • PARI
    list(lim)=my(v=List(),k,pi,t); while(1, if(isprime(k++), pi++); t=k*pi-1; if(t>lim, return(Vec(v))); if(isprime(t), listput(v,t))) \\ Charles R Greathouse IV, Sep 18 2015

Extensions

Terms a(32)-a(55) added by Michael De Vlieger, Sep 01 2015
Corrected by Charles R Greathouse IV, Sep 18 2015

A140208 a(n) = floor(n*Pi(n)/2).

Original entry on oeis.org

0, 1, 3, 4, 7, 9, 14, 16, 18, 20, 27, 30, 39, 42, 45, 48, 59, 63, 76, 80, 84, 88, 103, 108, 112, 117, 121, 126, 145, 150, 170, 176, 181, 187, 192, 198, 222, 228, 234, 240, 266, 273, 301, 308, 315, 322, 352, 360, 367, 375, 382, 390, 424, 432, 440, 448, 456, 464
Offset: 1

Views

Author

Cino Hilliard, Jun 09 2008

Keywords

Comments

I introduce this sequence which is A128913(n)/2 because it is closely related to the prime counting function Pi(n) and the sum of primes < n for large n.
This is, SumP(n) ~ n*Pi(n)/2. For n = 10^10 n*Pi(n)/2 = 2275262555000000000.
Sum primes < 10^n = 2220822432581729238. This has error 0.0245...For the largest known sum of primes, for sums < 10^20, we have n*Pi(n)/2 = 111040980128045942000000000000000000000. The sum of primes < 10^20 = 109778913483063648128485839045703833541. The error here is -0.01149... It converges quite slowly and better approximations have been found.
This relationship was derived by using the summation formula for an arithmetic progression. For the odd integers where n is even, let the first term = 1, the last term is n-1 and the number of terms is n/2. So the sum of the odd numbers < n is ((1 +n-1)*n/2)/2. If we let Pi(x) be the number of terms, we get the result n*Pi(n)/2. A closed formula, SumP(n) ~ n^2/(2*log(n)-1) is quite accurate. The best formula I have found is the remarkable SumP(n) ~ Pi(n^2).
This formula has an error of 6.162071097138 E-11 for the largest known sum of primes or sum < 10^20.
Proof: 2+3+..+prime(n) = A007504(n) ~ n^2 log n / 2 (Bach and Shallit, 1996). Let n = Pi(x) ~ x/log x. So A007504(n) ~ (x/log x)^2 log(x/log x) / 2 ~ x^2 / (2 log x) ~ Pi(x^2). QED. - Thomas Ordowski, Aug 12 2012
See the link Sum of Primes for derivations of these asymptotic formulas.

Crossrefs

Programs

  • Mathematica
    a[n_]:=Floor[n*PrimePi[n]/2];Array[a,58] (* James C. McMahon, Jul 06 2025 *)
  • PARI
    g(n) = for(x=1,n,print1(floor(x*primepi(x)/2)","))

Formula

Pi(n) is the prime counting function, the number of primes < n. Define SumP(n) is the sum of primes < n.
Showing 1-4 of 4 results.