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

A145583 a(n) = number of numbers removed in the n-th step of Eratosthenes's sieve for 10^2.

Original entry on oeis.org

49, 16, 6, 3
Offset: 1

Views

Author

Artur Jasinski with assistance from Bob Hanlon (hanlonr(AT)cox.net), Oct 14 2008

Keywords

Comments

Number of steps in Eratosthenes's sieve for 10^n is A122121(n).
Number of primes less than 10^2 is equal to 10^2 - (sum all of numbers in this sequence) - 1 = A006880(2).

Crossrefs

Programs

  • Mathematica
    f3[k_Integer?Positive, i_Integer?Positive] := Module[{f, m, r, p}, p = Transpose[{r = Range[2, i], Prime[r]}];f[x_] := Catch[Fold[If[Mod[x, #2[[2]]] == 0, Throw[m[ #2[[1]]] = m[ #2[[1]]] + 1], #1] &, If[Mod[x, 2] == 0, Throw[m[1] = m[1] + 1]], p]]; Table[m[n] = -1, {n, i}]; f /@ Range[k]; Table[m[n], {n, i}]];nn = 2; kk = PrimePi[Sqrt[10^nn]]; t3 = f3[10^nn, kk] (*Bob Hanlon (hanlonr(AT)cox.net) *)

A227155 Number of composites removed in each step of the Sieve of Eratosthenes for 10^7.

Original entry on oeis.org

4999999, 1666666, 666666, 380952, 207791, 159839, 112829, 95016, 74356, 56405, 50949, 41317, 36293, 33780, 30205, 26228, 23123, 21975, 19655, 18249, 17467, 15871, 14876, 13668, 12358, 11710, 11344, 10779, 10451, 9955, 8748, 8398, 7956, 7768, 7181, 7034, 6724
Offset: 1

Views

Author

Eric F. O'Brien, Jul 02 2013

Keywords

Comments

The number of composites <= 10^7 for which the n-th prime is the least prime factor.
The number of multiples of the n-th prime <= 10^7 that do not have any prime < the n-th prime as a factor.
The greatest n for which the n-th prime is a multiple <= 10^7 without a prime factor < n-th prime = primepi(sqrt(10^7)).

Examples

			For n = 2, prime(n) = 3, a(n) = 1666666: 3 divides 10^7 3333333 times.
6 is the common multiple of 2 and 3, thus 10^7 \ 6 multiples of 3 (1666666) have already been eliminated by a(1).
3333333 less 1666666 = 1666667, less 1 because 3 itself is not eliminated.
Thus a(2) = 3333333 - 1666666 - 1 = 1666666.
		

Crossrefs

Formula

a(1) = 10^7 \ 2 - 1.
a(2) = 10^7 \ 3 - 10^7 \ 6 - 1.
a(3) = 10^7 \ 5 - 10^7 \ 10 - 10^7 \ 15 + 10^7 \ 30 - 1.

A227797 Number of composites removed in each step in the Sieve of Eratosthenes for 10^8.

Original entry on oeis.org

49999999, 16666666, 6666666, 3809523, 2077920, 1598400, 1128284, 950133, 743581, 564099, 509508, 413103, 362709, 337382, 301484, 261684, 230683, 219393, 196552, 182782, 175351, 159910, 150351, 138581, 125778, 119552, 116075, 110630, 107564, 102739, 90485
Offset: 1

Views

Author

Eric F. O'Brien, Jul 31 2013

Keywords

Comments

The number of composites <= 10^8 for which the n-th prime is the least prime factor.
pi(sqrt(10^8)) = the number of terms of A227797.
The sum of a(n) for n = 1..1229 = A000720(10^8) + A065855(10^8).

Examples

			For n = 3, prime(n) = 5, a(n) = 6666666: 5 divides 10^8 20000000 times. 10 is the least common multiple of 2 (prime(1)) and 5 and 15 is the least common multiple of 3 (prime(2)) and 5; thus [10^8 / 10] multiples of 5 and [10^8 / 15] multiples of 5 have already been eliminated by a(1) and a(2), and thereby respectively reduce a(3) by 10000000 and 6666666 offset by [10^8 / 30] multiples of 5 which would otherwise excessively reduce a(3) by 3333333 because 30 is the least common multiple of 2, 3 and 5. a(3) is further reduced by 1 as 5 itself is not eliminated.
		

Crossrefs

Formula

Writing floor(a/b) as [a / b]:
a(1) = [10^8 / 2] - 1.
a(2) = [10^8 / 3] - [10^8 / 6] - 1.
a(3) = [10^8 / 5] - [10^8 / 10] - [10^8 / 15] + [10^8 / 30] - 1.
a(4) = [10^8 / 7] - [10^8 / 14] - [10^8 / 21] - [10^8 / 35] + [10^8 / 42] + [10^8 / 70] + [10^8 / 105] - [10^8 / 210] - 1.

A227798 Number of composites removed in each step of the Sieve of Eratosthenes for 10^9.

Original entry on oeis.org

499999999, 166666666, 66666666, 38095237, 20779220, 15984016, 11282834, 9501331, 7435826, 5640969, 5095068, 4131143, 3627360, 3374293, 3015292, 2616982, 2306411, 2192860, 1963654, 1825278, 1750219, 1595163, 1499127, 1381337, 1253379, 1191536
Offset: 1

Views

Author

Eric F. O'Brien, Jul 31 2013

Keywords

Comments

a(n) = the number of composites <= 10^9 for which the n-th prime is the least prime factor.
pi(sqrt(10^9)) = the number of terms of this sequence.
The sum of a(n) for n = 1..3401 = A000720(10^9) + A065855(10^9).

Examples

			a(1) = 10^9 \ 2 - 1.
a(2) = 10^9 \ 3 - 10^9 \ (2*3) - 1
a(3) = 10^9 \ 5 - 10^9 \ (2*5) - 10^9 \ (3*5) + 10^9 \ (2*3*5) - 1
a(4) = 10^9 \ 7 - 10^9 \ (2*7) - 10^9 \ (3*7) - 10^9 \ (5*7) + 10^9 \ (2*3*7) + 10^9 \ (2*5*7) + 10^9 \ (3*5*7) - 10^9 \ (2*3*5*7) - 1.
		

Crossrefs

A227799 Number of composites removed in each step of the Sieve of Eratosthenes for 10^10.

Original entry on oeis.org

4999999999, 1666666666, 666666666, 380952380, 207792207, 159840159, 112828348, 95013343, 74358271, 56409724, 50950713, 41311372, 36273411, 33742734, 30153115, 26170720, 23065826, 21931483, 19640105, 18256894, 17506397, 15954848, 14993294, 13813524, 12531256
Offset: 1

Views

Author

Eric F. O'Brien, Jul 31 2013

Keywords

Comments

a(n) = the number of composites <= 10^10 for which the n-th prime is the least prime factor.
pi(sqrt(10^10)) = the number of terms of this sequence.
The sum of a(n) for n = 1..3401 = A000720(10^10) + A065855(10^10).

Examples

			a(1) = 10^10 \ 2 - 1.
a(2) = 10^10 \ 3 - 10^10 \ (2*3) - 1.
a(3) = 10^10 \ 5 - 10^10 \ (2*5) - 10^10 \ (3*5) + 10^10 \ (2*3*5) - 1.
a(4) = 10^10 \ 7 - 10^10 \ (2*7) - 10^10 \ (3*7) - 10^10 \ (5*7) + 10^10 \ (2*3*7) + 10^10 \ (2*5*7) + 10^10 \ (3*5*7) - 10^10 \ (2*3*5*7) - 1.
		

Crossrefs

A145584 a(n) = number of numbers removed in step n of Eratosthenes's sieve for 2^6.

Original entry on oeis.org

31, 10, 3, 1
Offset: 1

Views

Author

Artur Jasinski with assistance from Bob Hanlon (hanlonr(AT)cox.net), Oct 14 2008

Keywords

Comments

Number of steps in Eratosthenes's sieve for 2^n is A060967(n).
Number of primes less than 2^6 is equal to 2^6 - (sum all of numbers in this sequence) - 1 = A007053(6).

Crossrefs

Programs

  • Mathematica
    f3[k_Integer?Positive, i_Integer?Positive] := Module[{f, m, r, p}, p = Transpose[{r = Range[2, i], Prime[r]}];f[x_] := Catch[Fold[If[Mod[x, #2[[2]]] == 0, Throw[m[ #2[[1]]] = m[ #2[[1]]] + 1], #1] &, If[Mod[x, 2] == 0, Throw[m[1] = m[1] + 1]], p]]; Table[m[n] = -1, {n, i}]; f /@ Range[k]; Table[m[n], {n, i}]];nn = 6; kk = PrimePi[Sqrt[2^nn]]; t3 = f3[2^nn, kk] (* Bob Hanlon (hanlonr(AT)cox.net) *)
Showing 1-6 of 6 results.