[go: up one dir, main page]

login
A088807
Number of distinct prime factors of p^p - 1 where p = prime(n).
2
1, 2, 3, 4, 4, 5, 4, 3, 6, 9, 4, 9, 7, 6, 5, 7, 5, 7, 9, 7, 12, 8, 6, 8, 8, 11, 8, 6, 7, 10, 9, 7, 13
OFFSET
1,2
FORMULA
a(n) = A344870(A000040(n)). - Amiram Eldar, Jul 04 2024
MATHEMATICA
PrimeNu/@Table[p^p-1, {p, Prime[Range[30]]}] (* The program takes a long time to run. *) (* Harvey P. Dale, Sep 05 2020 *)
PROG
(PARI) omegaptop(n, m) = { sr=0; forprime(x=2, n, y=omega(x^x-m); print1(y", "); sr += 1.0/y; ); print(); }
(Python)
from sympy import factorint, prime
def a(n): p = prime(n); return len(factorint(p**p-1).values())
print([a(n) for n in range(1, 12)]) # Michael S. Branicky, May 27 2022
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Cino Hilliard, Nov 23 2003
EXTENSIONS
More terms from Ray Chandler, Feb 21 2004
Name clarified, offset and data corrected and a(27)-a(33) added by Amiram Eldar, Jul 04 2024
STATUS
approved