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

A059987 Lucky numbers generated from primes.

Original entry on oeis.org

2, 5, 11, 17, 31, 41, 47, 59, 73, 83, 103, 127, 137, 149, 157, 179, 197, 211, 233, 257, 269, 283, 307, 313, 331, 353, 367, 379, 389, 431, 449, 487, 499, 509, 547, 563, 571, 607, 617, 631, 661, 677, 691, 709, 739, 751, 823, 829, 853, 877, 883, 907, 919, 947
Offset: 1

Views

Author

Jason Earls, Mar 13 2001

Keywords

Comments

Follow same procedure that is used to produce the lucky numbers A000959 except use primes instead of natural numbers.
Start with natural numbers, apply sieve of Eratosthenes, then sieve of Ulam. This is an example of composition of sieve operators. Circa 1955, Polish mathematician Stanislaw Ulam (1909-1984) identified a particular sequence which he designated "lucky numbers," which share many properties with primes (density, equivalent of twin primes, equivalent of Goldbach's conjecture). Other "random primes" which generalize the lucky numbers not only almost always satisfy the prime number theorem but also the Riemann Hypothesis. What can be said about composition of such "random primes"? - Jonathan Vos Post, May 08 2007
There is a slight ambiguity, arising from the first step of Ulam's sieve, which is to delete every second number, while in the remainder of the procedure, one deletes every v(k)-th term from the current vector v, with k=2,3,4... (but not k=1 in the 1st step). The present sequence is obtained by deleting in the first step every 2nd prime (thus using k=1 in the first step). - M. F. Hasler, Sep 23 2013

Crossrefs

Programs

  • PARI
    list_A059987(N=200)={my(v=primes(N),i);while(v[i++]<=#v,v=vecextract(v,2^#v-1-sum(j=1,#v\v[i],2^(v[i]*j-1))));v} \\ - M. F. Hasler, Sep 22 2013

Extensions

Entry revised by N. J. A. Sloane, Oct 20 2007, at the suggestion of R. J. Mathar

A229483 Squarefree numbers whose indices are lucky numbers.

Original entry on oeis.org

1, 3, 10, 13, 19, 22, 33, 38, 47, 53, 59, 69, 78, 82, 102, 107, 110, 115, 119, 129, 141, 151, 161, 173, 182, 187, 206, 210, 215, 218, 227, 246, 258, 265, 274, 278, 309, 314, 318, 327, 334, 346, 359, 367, 382, 389, 391, 397, 426, 429, 437, 446, 462, 465, 470
Offset: 1

Views

Author

Keywords

Comments

Originally arose as "Lucky numbers generated from squarefree numbers" under the hypothesis that Ulam's sieve (the one used to produce lucky numbers) ignores the values of the terms.

Crossrefs

Formula

a(n) = A005117(A000959(n)). - Charles R Greathouse IV, Sep 16 2013

A229494 Lucky numbers generated from noncomposite numbers.

Original entry on oeis.org

1, 3, 13, 19, 37, 43, 61, 71, 89, 101, 113, 131, 163, 181, 193, 223, 229, 251, 281, 293, 317, 337, 359, 397, 409, 433, 443, 463, 479, 503, 521, 557, 569, 593, 601, 641, 701, 719, 743, 757, 787, 809, 839, 863, 911, 929, 953, 971, 997
Offset: 1

Views

Author

Irina Gerasimova and M. F. Hasler, Sep 24 2013

Keywords

Comments

Result of application of "Ulam's sieve" (used to produce the lucky numbers A000959) to the noncomposite numbers A008578 instead of the naturals A000027.
The "Lucky numbers generated from primes", cf. A059987 = (2, 5, 11, 17, ...), form a disjoint subset, because they are a subset of the odd-indexed primes, while the present sequence is the union of {1} and a subset of the even-indexed primes. - M. F. Hasler, Sep 24 2013

Examples

			Start with noncomposite numbers A008578 = (1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, ...). Delete every 2nd number to get (1, 3, 7, 13, 19, 29, 37, ...). Since the next larger remaining number is 3, delete every 3rd term to get (1, 3, 13, 19, 37, ...). Then delete every 13th term, and so on.
		

Crossrefs

Programs

  • PARI
    list_A229494(N=200)={my(v=concat(1,primes(N)), i=1); until(v[i++]>#v, v=vecextract(v, 2^#v-1-sum(j=1, #v\v[i+(i<2)], 2^(v[i+(i<2)]*j-1)))); v}
Showing 1-3 of 3 results.