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-2 of 2 results.

A146169 Percentage (rounded) of semiprimes <= 2^n which are odd and squarefree.

Original entry on oeis.org

0, 0, 17, 20, 36, 48, 56, 61, 65, 69, 71, 73, 75, 76, 77, 78, 79, 80, 80, 81, 81, 82, 82, 82, 83, 83, 83, 83, 84, 84, 84, 84
Offset: 2

Views

Author

Washington Bomfim, Oct 27 2008

Keywords

Comments

More than 84% of the semiprimes in the interval [4, 2^32] are odd and squarefree. This percentage appears to rise indefinitely as n grows.
a(n) = 100 for all n > N. What is the least such N? - Charles R Greathouse IV, May 12 2013

Examples

			a(5)= 20 since the interval [4, 2^5] contains 10 semiprimes, namely 4,6,9,10,14,15,21,22,25 and 26; and two of those semiprimes, (15 and 21), are odd and squarefree.
		

Crossrefs

Cf. A001358(semiprimes), A125527(Number of semiprimes <= 2^n), A146168(Number of odd squarefree semiprimes < 2^n).

Programs

  • PARI
    a(n)=my(s,i,N=2^n); forprime(p=2, sqrtint(N), s+=primepi(N\p); i++); s-=i*(i-1)/2; i=primepi(sqrtint(N))+primepi(N/2)-1; round(100*(s-i)/s) \\ Charles R Greathouse IV, May 12 2013

Formula

a(n) = round(A146168(n)/A125527(n)*100)

A146170 Percentage (rounded) of odd numbers < 2^n which are primes or squarefree semiprimes.

Original entry on oeis.org

0, 50, 75, 75, 75, 78, 78, 77, 75, 72, 70, 66, 64, 61, 59, 57, 55, 53, 51, 49, 48, 46, 45, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34
Offset: 1

Views

Author

Washington Bomfim, Oct 27 2008

Keywords

Examples

			a(4)=75 because 75% of the 2^3 numbers 1, 3, 5, 7, 9, 11, 13 and 15 are primes or squarefree semiprimes.
		

Crossrefs

Cf. A001358(semiprimes), A007053(Number of primes <= 2^n), A146168(Number of odd squarefree semiprimes < 2^n).

Formula

a(n) = round((A146168(n)+A007053(n)-1)/(2^(n-1))*100).
Showing 1-2 of 2 results.