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.

A373338 Characteristic function of A333242: a(n) = 1 if n is a term of A333242.

Original entry on oeis.org

0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0
Offset: 1

Views

Author

Michael P. May, Jun 01 2024

Keywords

Comments

This sequence is the result of applying the N-sieve to generate the prime number subsequence A333242 where 1 indicates a prime number chosen to be included in sequence A333242 and 0 indicates the prime numbers and composites not in A333242.

Crossrefs

Programs

  • Mathematica
    Select[Prime@ Range@ 75, EvenQ@ Length@ NestWhileList[ PrimePi, #, PrimeQ] &]
  • PARI
    A078442(n) = my(k=0); while(isprime(n), k++; n=primepi(n)); k;
    a(n) = A078442(n) % 2; \\ Michel Marcus, Jun 15 2024

Formula

a(n) = A078442(n) mod 2

A358274 a(n) is the prime before A262275(n).

Original entry on oeis.org

2, 7, 13, 37, 61, 79, 107, 113, 151, 181, 199, 239, 271, 281, 349, 359, 397, 457, 503, 541, 557, 577, 613, 733, 769, 787, 857, 863, 953, 983, 1021, 1061, 1069, 1163, 1193, 1213, 1399, 1429, 1439, 1459, 1493, 1583, 1619, 1667, 1721, 1733, 1811, 1907, 2017, 2053
Offset: 1

Views

Author

Michael P. May, Nov 11 2022

Keywords

Comments

The sum of the individual gaps formed by the subtraction of the next lower prime number from each prime in A262275 approximates the prime counting function at very large n.

Examples

			a(3) = A262275(3) - A348677(3) = 17 - 4 = 13.
		

References

  • Michael P. May, "Relationship Between the Prime Counting Function and a Unique Prime Number Sequence", accepted for publication in the March 2023 edition of the Missouri Journal of Mathematical Sciences.

Crossrefs

Programs

  • PARI
    b(n) = {my(k=0); while(isprime(n), k++; n=primepi(n)); k};
    apply(x->precprime(x-1), apply(prime, select(n->b(n)%2, [1..500]))) \\ Michel Marcus, Nov 18 2022

Formula

a(n) = A262275(n) - A348677(n).
a(n) = A151799(A262275(n)).
Showing 1-2 of 2 results.