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.

A049236 a(n) is the number of distinct prime factors of prime(n) + 2.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 3, 1, 2, 2, 2, 2, 1, 2, 1, 2, 2, 3, 1, 2, 1, 2, 1, 3, 1, 2, 2, 2, 1, 3, 2, 1, 1, 2, 2, 2, 1, 3, 2, 1, 3, 2, 2, 1, 3, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 3, 2, 3, 2, 2, 1, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 1, 2
Offset: 1

Views

Author

Keywords

Examples

			prime(27) = 103, prime(27) + 2 = 105 = 3*5*7 has 3 prime factors, so a(27) = 3.
		

Crossrefs

Programs

  • Mathematica
    Table[Length[FactorInteger[Prime[n] + 2]], {n, 1, 50}] (* G. C. Greubel, May 12 2017 *)
  • PARI
    a(n) = omega(prime(n) + 2); \\ Amiram Eldar, Sep 16 2024

Formula

a(n) = A001221(A052147(n)). - Amiram Eldar, Sep 16 2024