OFFSET
1,2
COMMENTS
All primes p are in this sequence, since p^(p-1) has p divisors.
For all odd semiprimes s, s^2 is in this sequence, since s^((s-1)/2) has s divisors.
LINKS
David W. Wilson, Table of n, a(n) for n=1..10000
EXAMPLE
11^10 has 11 divisors, so 11 is in the sequence.
225^7 has 225 divisors, so 225 is in the sequence.
MATHEMATICA
q[n_] := Module[{e = FactorInteger[n][[;; , 2]], k = 1}, While[n > Times @@ (k*e + 1), k++]; n == Times @@ (k*e + 1)]; q[1] = True; Select[Range[250], q] (* Amiram Eldar, Apr 09 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David W. Wilson, Sep 26 2010
STATUS
approved