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.

A008335 Number of distinct primes dividing p+1 as p runs through the primes.

Original entry on oeis.org

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

Views

Author

Keywords

Crossrefs

Programs

  • Maple
    for i from 1 to 500 do if isprime(i) then print(nops(factorset(i+1))); fi; od;
  • Mathematica
    a[n_] := PrimeNu[Prime[n]+1]; Array[a, 100] (* Amiram Eldar, Sep 10 2024 *)
  • PARI
    a(n) = omega(prime(n)+1); \\ Michel Marcus, Mar 29 2016

Formula

a(n) = A001221(A008864(n)). - Michel Marcus, Mar 29 2016