The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A355937 a(n) = 1 if the number of divisors of n is a noncomposite, otherwise 0. 3
1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
FORMULA
a(n) = A080339(A000005(n)).
For all n >= 1, a(n) <= A010055(n).
Sum_{k=1..n} a(k) ~ n/log n. - Bill McEachen and Charles R Greathouse IV, Sep 11 2022
MATHEMATICA
a[n_] := If[!CompositeQ[DivisorSigma[0, n]], 1, 0]; Array[a, 100] (* Amiram Eldar, Jul 21 2022 *)
PROG
(PARI) A355937(n) = ((1==n)||isprime(isprimepower(n)+1));
CROSSREFS
Characteristic function of {1} UNION A009087.
Cf. A355938.
Sequence in context: A071032 A071034 A089497 * A345950 A122895 A333248
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 21 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 5 01:34 EDT 2024. Contains 373102 sequences. (Running on oeis4.)